Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.09ms] Passed 4 tests
An overview of server-side resources used by Categories Images
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 40.41 ▼1.76 |
Dashboard /wp-admin | 3.44 ▲0.13 | 45.95 ▼5.07 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.09 ▼0.96 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 83.29 ▼4.56 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.25 ▼0.31 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Categories Images
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.24 ▼1.42 | 1.70 ▼0.04 | 45.44 ▲3.25 |
Dashboard /wp-admin | 2,218 ▲30 | 4.88 ▲0.01 | 98.58 ▼12.16 | 41.93 ▲1.87 |
Posts /wp-admin/edit.php | 2,098 ▲12 | 2.04 ▼0.02 | 34.20 ▼0.66 | 34.25 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 23.19 ▲5.67 | 598.61 ▼60.89 | 57.22 ▲3.32 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.19 ▲0.00 | 99.10 ▼3.17 | 42.02 ▼1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/categories-images/templates/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (22 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (Image preview and new image field in add/edit category or taxonomy with upload button which allow you to select current or upload a new image.), #2 (New image field with (upload/remove) buttons to allow you to edit category or taxonomy image in quick edit.), #3 (When you click the upload button the wordpress upload box will popup, upload or select image then press use this image.), #4 (New menu (Categories Images) for the plugin settings.), #5 (Now you can exclude any taxonomy from the plugin and save changes.)
categories-images/categories-images.php Passed 13 tests
"Categories Images" version 3.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Categories Images Plugin allow you to add an image to category or any custom term.
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin688 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 80 | 94 | 344 |
PHP | 3 | 51 | 51 | 278 |
JavaScript | 1 | 7 | 7 | 61 |
CSS | 1 | 0 | 1 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.47MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 65.57KB | 19.20KB | ▼ 70.71% |
images/placeholder.png | 27.87KB | 11.37KB | ▼ 59.19% |
screenshot-2.png | 164.42KB | 65.29KB | ▼ 60.29% |
assets/images/placeholder.png | 27.87KB | 11.37KB | ▼ 59.19% |
screenshot-1.png | 115.11KB | 43.90KB | ▼ 61.86% |