78% simple-admin-columns

Code Review | Simple Admin Columns

WordPress plugin Simple Admin Columns scored78%from 54 tests.

About plugin

  • Plugin page: simple-admin-columns
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Sep 10, 2017
  • Number of updates: 6
  • Update frequency: every 43.0 days
  • Top authors: wpflask (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,351 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.66ms] Passed 4 tests

An overview of server-side resources used by Simple Admin Columns
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.16 ▼6.93
Dashboard /wp-admin3.38 ▲0.0349.69 ▼15.00
Posts /wp-admin/edit.php3.50 ▲0.1454.61 ▲0.38
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.35 ▼1.08
Media Library /wp-admin/upload.php3.30 ▲0.0735.36 ▼3.62
Simple Admin Columns /wp-admin/options-general.php?page=wpflask-admin-columns3.2834.75

Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Simple Admin Columns: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.31 ▼0.891.94 ▲0.2640.77 ▼1.38
Dashboard /wp-admin2,207 ▲194.86 ▼0.20111.31 ▲6.2238.18 ▼4.33
Posts /wp-admin/edit.php2,093 ▲12.02 ▼0.0238.21 ▼2.6940.60 ▲8.04
Add New Post /wp-admin/post-new.php1,517 ▲317.66 ▲0.03673.57 ▼28.3555.61 ▲2.75
Media Library /wp-admin/upload.php1,386 ▼54.17 ▼0.03101.78 ▲0.7544.19 ▲0.76
Simple Admin Columns /wp-admin/options-general.php?page=wpflask-admin-columns1,0371.7124.5330.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/simple-admin-columns/simple-admin-columns.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-admin-columns/inc/extras.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-admin-columns/inc/admin.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/simple-admin-columns/inc/settings-page.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=wpflask-admin-columns
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cookies is not defined" "ReferenceError: Cookies is not defined\n at Object.tabInit (/wp-content/plugins/simple-admin-columns/js/admin.js?ver=6.3.1:29:11)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/simple-admin-columns/js/admin.js?ver=6.3.1:95:29)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=wpflask-admin-columns
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: Cookies is not defined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

simple-admin-columns/simple-admin-columns.php 85% from 13 tests

Analyzing the main PHP file in "Simple Admin Columns" version 1.0.1
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,040 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4228440645
PHP4114181312
CSS1101183

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected