Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.45MB] [CPU: ▲7.49ms] Passed 4 tests
A check of server-side resources used by Admin Columns
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.44 ▼8.52 |
Dashboard /wp-admin | 5.17 ▲1.83 | 60.60 ▲2.21 |
Posts /wp-admin/edit.php | 5.54 ▲2.19 | 73.98 ▲26.82 |
Add New Post /wp-admin/post-new.php | 7.71 ▲1.83 | 103.20 ▲9.46 |
Media Library /wp-admin/upload.php | 5.36 ▲2.14 | 62.07 ▲27.56 |
Server storage [IO: ▲4.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 867 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_admin_columns |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Admin Columns
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.30 ▼1.07 | 5.07 ▲3.28 | 44.72 ▲0.42 |
Dashboard /wp-admin | 2,215 ▲30 | 4.83 ▼0.06 | 109.38 ▲9.88 | 45.31 ▲1.99 |
Posts /wp-admin/edit.php | 2,182 ▲93 | 2.50 ▲0.41 | 45.17 ▲8.56 | 36.03 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 23.04 ▲4.60 | 593.34 ▼8.07 | 51.61 ▼0.06 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.44 ▲0.20 | 103.23 ▲3.46 | 43.04 ▼2.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 does not fully uninstall, leaving 1 table in the database
- wp_admin_columns
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 474× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AC\\Column' not found in wp-content/plugins/codepress-admin-columns/classes/Column/Comment/Response.php:10
- > PHP Fatal error
Uncaught Error: Interface 'AC\\Vendor\\DI\\Definition\\Source\\Autowiring' not found in wp-content/plugins/codepress-admin-columns/vendor/php-di/php-di/src/Definition/Source/NoAutowiring.php:13
- > PHP Fatal error
Uncaught Error: Class 'AC\\Settings\\Column' not found in wp-content/plugins/codepress-admin-columns/classes/Settings/Column/PathScope.php:8
- > PHP Fatal error
Uncaught Error: Class 'AC\\Settings\\Column' not found in wp-content/plugins/codepress-admin-columns/classes/Settings/Column/MissingImageSize.php:8
- > PHP Fatal error
Uncaught Error: Interface 'AC\\Expirable' not found in wp-content/plugins/codepress-admin-columns/classes/Transient.php:8
- > PHP Fatal error
Uncaught Error: Interface 'AC\\ListTable' not found in wp-content/plugins/codepress-admin-columns/classes/ListTable/Post.php:8
- > PHP Fatal error
Uncaught Error: Class 'AC\\Preferences\\Site' not found in wp-content/plugins/codepress-admin-columns/classes/ColumnSize/UserPreference.php:7
- > PHP Fatal error
Uncaught Error: Interface 'AC\\Admin\\Colors\\ColorReader' not found in wp-content/plugins/codepress-admin-columns/classes/Admin/Colors/ColorRepository.php:9
- > PHP Fatal error
Uncaught Error: Interface 'AC\\Vendor\\Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/codepress-admin-columns/vendor/php-di/invoker/src/ParameterResolver/Container/ParameterNameContainerResolver.php:13
- > PHP Fatal error
Uncaught Error: Class 'AC\\Settings\\Column\\Pro' not found in wp-content/plugins/codepress-admin-columns/classes/Settings/Column/Pro/Sorting.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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: Please reduce the number of tags, currently 18 tag instead of maximum 10
- Screenshots: A description for screenshot #9 is missing in codepress-admin-columns/assets to your readme.txt
- Screenshots: Please add an image for screenshot #1 (Settings page for Post(type) columns.)
codepress-admin-columns/codepress-admin-columns.php 92% from 13 tests
"Admin Columns" version 4.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected60,836 lines of code in 781 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 23 | 13,536 | 16,988 | 27,689 |
PHP | 702 | 7,934 | 8,866 | 27,176 |
JavaScript | 12 | 524 | 452 | 3,822 |
Markdown | 10 | 405 | 0 | 876 |
JSON | 6 | 0 | 0 | 496 |
CSS | 17 | 130 | 116 | 448 |
SVG | 11 | 4 | 6 | 329 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 210)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 303.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 210.00 |
Code structure | ||
---|---|---|
Namespaces | 120 | |
Interfaces | 59 | |
Traits | 6 | |
Classes | 560 | |
▷ Abstract classes | 35 | 6.25% |
▷ Concrete classes | 525 | 93.75% |
▷ Final classes | 59 | 11.24% |
Methods | 2,671 | |
▷ Static methods | 58 | 2.17% |
▷ Public methods | 2,152 | 80.57% |
▷ Protected methods | 254 | 9.51% |
▷ Private methods | 265 | 9.92% |
Functions | 51 | |
▷ Named functions | 29 | 56.86% |
▷ Anonymous functions | 22 | 43.14% |
Constants | 214 | |
▷ Global constants | 5 | 2.34% |
▷ Class constants | 209 | 97.66% |
▷ Public constants | 199 | 95.22% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
44 PNG files occupy 0.60MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/images/addons/toolset-types-icon-alt.png | 1.67KB | 0.75KB | ▼ 55.06% |
assets/images/tooltip/export-csv.png | 121.48KB | 57.25KB | ▼ 52.88% |
assets/images/tooltip/filter.png | 10.54KB | 4.71KB | ▼ 55.35% |