78% wp-admin-filter-search

Code Review | WP Admin Filter & Search

WordPress plugin WP Admin Filter & Search scored78%from 54 tests.

About plugin

  • Plugin page: wp-admin-filter-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-3.4
  • WordPress version: 6.3.1
  • First release: Jul 25, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: makong (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.36MB] [CPU: ▼20.63ms] Passed 4 tests

Server-side resources used by WP Admin Filter & Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.77 ▲1.74
Dashboard /wp-admin3.24 ▼0.0640.96 ▼5.86
Posts /wp-admin/edit.php3.18 ▼0.1827.33 ▼19.74
Add New Post /wp-admin/post-new.php4.64 ▼1.2440.49 ▼54.64
Media Library /wp-admin/upload.php3.27 ▲0.0433.53 ▼2.26
MkgCColumns /wp-admin/options-general.php?page=mkg_ccolumns3.2428.73

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Admin Filter & Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.75 ▲0.392.00 ▲0.4637.18 ▼8.02
Dashboard /wp-admin2,199 ▲245.54 ▼0.0682.11 ▼13.9138.44 ▼6.71
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0237.21 ▼1.0435.00 ▼0.93
Add New Post /wp-admin/post-new.php1,540 ▲1418.28 ▼4.83611.29 ▼59.8267.70 ▲13.19
Media Library /wp-admin/upload.php1,407 ▲104.19 ▲0.0497.37 ▼3.4844.17 ▲0.11
MkgCColumns /wp-admin/options-general.php?page=mkg_ccolumns8122.0323.5224.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=mkg_ccolumns
    • > Notice in wp-content/plugins/wp-admin-filter-search/mkg-ccolumns-settings.php+9
    Undefined variable: result

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-filter-search/mkg-ccolumns.php:15
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/wp-admin-filter-search/mkg-ccolumns-settings.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-admin-filter-search/mkg-ccolumns-settings.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: sorting, custom fields, filter, post manager, search

wp-admin-filter-search/mkg-ccolumns.php 92% from 13 tests

The principal PHP file in "WP Admin Filter & Search" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-admin-filter-search.php" instead of "mkg-ccolumns.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected242 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3739242

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin