10% jpress-admin-column-search

Code Review | jPress Admin Column Search

WordPress plugin jPress Admin Column Search scored 10% from 54 tests.

About plugin

  • Plugin page: jpress-admin-colu...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 5.8.1
  • First release: Jun 30, 2016
  • Latest release: Aug 9, 2016
  • Number of updates: 5
  • Update frequency: every 8.0 days
  • Top authors: joharyjoox (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 1,157 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/jpress-admin-column-search/jpress-admin-column-search.php+350
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼1.75MB] [CPU: ▼187.13ms] Passed 4 tests

An overview of server-side resources used by jPress Admin Column Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.89 ▼0.955.57 ▼27.24
Dashboard /wp-admin1.91 ▼1.155.69 ▼39.24
Posts /wp-admin/edit.php1.91 ▼1.206.59 ▼36.32
Add New Post /wp-admin/post-new.php1.91 ▼3.535.63 ▼645.71
Media Library /wp-admin/upload.php1.91 ▼1.106.16 ▼24.77
Admin Column Search /wp-admin/options-general.php?page=admin-column-search1.915.41

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by jPress Admin Column Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,719 ▲12316.00 ▲0.379.95 ▲0.8247.70 ▲3.81
Dashboard /wp-admin2,986 ▲556.50 ▲0.51138.21 ▼4.12103.81 ▼6.08
Posts /wp-admin/edit.php2,761 ▲222.92 ▲0.2166.26 ▼3.8287.48 ▼11.90
Add New Post /wp-admin/post-new.php1,632 ▲12621.96 ▲3.41272.22 ▼82.45103.08 ▼4.55
Media Library /wp-admin/upload.php1,823 ▲165.15 ▲0.14148.81 ▼7.13122.47 ▲2.23
Admin Column Search /wp-admin/options-general.php?page=admin-column-search9,4162.8174.1297.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/jpress-admin-column-search/jpress-admin-column-search.php+350
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=admin-column-search
    • > Warning in wp-content/plugins/jpress-admin-column-search/jpress-admin-column-search.php+350
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • 134 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=admin-column-search
    • > Notice in wp-content/plugins/jpress-admin-column-search/pages/tab-configuration.php+187
    Trying to access array offset on value of type bool
  • 252 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=admin-column-search
    • > Notice in wp-content/plugins/jpress-admin-column-search/pages/tab-configuration.php+187
    Trying to access array offset on value of type null
  • 21 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=admin-column-search
    • > Deprecated in wp-content/plugins/jpress-admin-column-search/pages/tab-configuration.php+134
    Function create_function() is deprecated

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
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/jpress-admin-column-search/jpress-admin-column-search.php on line 350
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/jpress-admin-column-search/pages/tab-configuration.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jpress-admin-column-search/pages/tab-settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/jpress-admin-column-search/pages/admin-page.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt might help

jpress-admin-column-search/jpress-admin-column-search.php Passed 13 tests

"jPress Admin Column Search" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Add an advanced data search and filter on admin page list content for each declared columns

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,975 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42153302,064
CSS437591,186
PHP47652583
PO File26072142

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/drag.png0.18KB0.13KB▼ 30.48%
assets/css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
assets/images/order_arrow.png0.75KB0.75KB0.00%
assets/css/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
assets/css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%