Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.50MB] [CPU: ▼10.29ms] Passed 4 tests
Analyzing server-side resources used by KAPOW Image Recommendation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.12 ▼0.48 |
Dashboard /wp-admin | 3.42 ▲0.11 | 64.25 ▲13.78 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.22 ▼1.78 |
Add New Post /wp-admin/post-new.php | 3.56 ▼2.33 | 55.84 ▼41.21 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.77 ▲2.32 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for KAPOW Image Recommendation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲108 | 14.80 ▲0.42 | 2.01 ▲0.17 | 43.87 ▲0.13 |
Dashboard /wp-admin | 2,224 ▲42 | 4.88 ▼0.92 | 101.49 ▼17.08 | 40.14 ▼5.26 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.04 ▲0.03 | 34.01 ▼3.86 | 35.55 ▲2.36 |
Add New Post /wp-admin/post-new.php | 3,115 ▲1,582 | 7.73 ▼15.22 | 205.07 ▼463.37 | 72.36 ▲20.48 |
Media Library /wp-admin/upload.php | 1,409 ▲30 | 4.18 ▼0.01 | 99.91 ▼4.74 | 43.74 ▲1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/kapow-image-recommendation/admin/partials/kapow-admin-display.php
- > /wp-content/plugins/kapow-image-recommendation/public/partials/kapow-public-display.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/kapow-image-recommendation/admin/partials/kapow-admin-display.php on line 20
- > PHP Notice
Undefined variable: props in wp-content/plugins/kapow-image-recommendation/admin/partials/kapow-admin-display.php on line 20
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: recommendation, unsplash, photos, media, images
kapow-image-recommendation/kapow.php 77% from 13 tests
The primary PHP file in "KAPOW Image Recommendation" version 1.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("kapow-image-recommendation.php" instead of "kapow.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin632 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 224 | 779 | 532 |
JavaScript | 2 | 18 | 44 | 100 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 27 | 64.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 35.71% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 13 | |
▷ Global constants | 5 | 38.46% |
▷ Class constants | 8 | 61.54% |
▷ Public constants | 4 | 50.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin