Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲3.16ms] Passed 4 tests
Analyzing server-side resources used by Categorify - WordPress Media Library Category & File Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.65 | 36.80 ▲0.99 |
Dashboard /wp-admin | 3.96 ▲0.66 | 50.60 ▼2.02 |
Posts /wp-admin/edit.php | 4.01 ▲0.66 | 52.79 ▲8.87 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.61 | 95.83 ▲5.57 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 41.69 ▲8.11 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.05 | 38.23 |
Server storage [IO: ▲4.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 226 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
fs_debug_mode |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
categorify_sidebar_width |
db_upgraded |
fs_accounts |
fs_active_plugins |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Categorify - WordPress Media Library Category & File Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲143 | 14.62 ▲0.27 | 1.71 ▲0.06 | 32.66 ▼9.20 |
Dashboard /wp-admin | 2,310 ▲133 | 6.38 ▲0.79 | 116.69 ▲19.97 | 40.98 ▲0.91 |
Posts /wp-admin/edit.php | 2,239 ▲142 | 3.48 ▲1.47 | 53.55 ▲17.87 | 37.63 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,582 ▲55 | 23.04 ▲0.01 | 617.38 ▼87.17 | 38.03 ▼16.61 |
Media Library /wp-admin/upload.php | 1,688 ▲294 | 4.67 ▲0.49 | 88.67 ▼8.30 | 42.78 ▲2.69 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,214 | 3.14 | 46.09 | 25.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/categorify/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- categorify_sidebar_width
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- fs_accounts
- fs_active_plugins
- fs_debug_mode
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'CATEGORIFY_PATHinc/sidebar.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/categorify/inc/plugin.php on line 14
- > PHP Warning
include_once(CATEGORIFY_PATHinc/settings/settings.php): failed to open stream: No such file or directory in wp-content/plugins/categorify/inc/plugin.php on line 15
- > PHP Warning
Use of undefined constant CATEGORIFY_PATH - assumed 'CATEGORIFY_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/categorify/inc/plugin.php on line 12
- > PHP Warning
include_once(): Failed opening 'CATEGORIFY_PATHinc/settings/settings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/categorify/inc/plugin.php on line 15
- > PHP Warning
include_once(): Failed opening 'CATEGORIFY_PATHinc/category.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/categorify/inc/plugin.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/categorify/inc/sidebar.php:8
- > PHP Warning
Use of undefined constant CATEGORIFY_PATH - assumed 'CATEGORIFY_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/categorify/inc/plugin.php on line 15
- > PHP Warning
Use of undefined constant CATEGORIFY_PATH - assumed 'CATEGORIFY_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/categorify/inc/plugin.php on line 14
- > PHP Warning
include_once(CATEGORIFY_PATHinc/sidebar.php): failed to open stream: No such file or directory in wp-content/plugins/categorify/inc/plugin.php on line 14
- > PHP Warning
include_once(): Failed opening 'CATEGORIFY_PATHinc/helper.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/categorify/inc/plugin.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Contributors: Plugin contributors field is missing
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
categorify/categorify.php Passed 13 tests
The main PHP script in "Categorify - WordPress Media Library Category & File Manager" version 1.0.7.4 is automatically included on every request by WordPress
68 characters long description:
Organize your WordPress media files in categories via drag and drop.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin39,149 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 8,246 | 17,397 | 34,598 |
JavaScript | 12 | 733 | 244 | 2,664 |
CSS | 18 | 65 | 102 | 1,655 |
SVG | 10 | 0 | 7 | 232 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 79.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,334 | |
▷ Static methods | 205 | 15.37% |
▷ Public methods | 931 | 69.79% |
▷ Protected methods | 17 | 1.27% |
▷ Private methods | 386 | 28.94% |
Functions | 104 | |
▷ Named functions | 103 | 99.04% |
▷ Anonymous functions | 1 | 0.96% |
Constants | 155 | |
▷ Global constants | 108 | 69.68% |
▷ Class constants | 47 | 30.32% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |