Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼10.93ms] Passed 4 tests
Analyzing server-side resources used by Light Blue API for ProPhoto Plug-in
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 33.20 ▼4.90 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.88 ▼18.53 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.90 ▲3.99 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 78.69 ▼21.29 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.28 ▲1.00 |
Light Blue / ProPhoto /wp-admin/options-general.php?page=light_blue_pro_photo_settings | 3.22 | 28.93 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Light Blue API for ProPhoto Plug-in
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲40 | 13.29 ▼1.08 | 1.58 ▼0.63 | 37.73 ▼5.97 |
Dashboard /wp-admin | 2,217 ▲29 | 5.90 ▲1.00 | 101.94 ▼10.79 | 41.70 ▼4.15 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 1.97 ▼0.01 | 35.62 ▼0.41 | 37.91 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,428 ▼86 | 21.97 ▲4.40 | 562.67 ▼116.23 | 29.67 ▼15.29 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.29 ▲0.08 | 95.27 ▼4.42 | 39.20 ▼8.78 |
Light Blue / ProPhoto /wp-admin/options-general.php?page=light_blue_pro_photo_settings | 791 | 1.53 | 8.15 | 30.67 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=light_blue_pro_photo_settings
- > Notice in wp-content/plugins/prophoto-light-blue-api-add-on/prophoto-light-blue-api.php+141
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=light_blue_pro_photo_settings
- > Error in wp-content/plugins/prophoto-light-blue-api-add-on/prophoto-light-blue-api.php+266
Uncaught Error: Class 'pp' not found in wp-content/plugins/prophoto-light-blue-api-add-on/prophoto-light-blue-api.php:266
Stack trace:
#0 wp-content/plugins/prophoto-light-blue-api-add-on/prophoto-light-blue-api.php(188): PPLightBlueAPI::construct_field_selector()
#1 wp-includes/class-wp-hook.php(310): PPLightBlueAPI::lb_settings_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prophoto-light-blue-api-add-on/prophoto-light-blue-api.php:30
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The Light Blue API for ProPhoto Plug-in settings page) image not found
prophoto-light-blue-api-add-on/prophoto-light-blue-api.php 92% from 13 tests
The main file in "Light Blue API for ProPhoto Plug-in" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("prophoto-light-blue-api-add-on.php" instead of "prophoto-light-blue-api.php")
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 plugin265 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 67 | 29 | 265 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 6.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 164.20KB | 49.29KB | ▼ 69.98% |