Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.82ms] Passed 4 tests
Analyzing server-side resources used by Image Source Overlay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.54 ▼1.49 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.24 ▼10.55 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 53.23 ▲4.58 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 95.32 ▲1.52 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.17 ▼0.77 |
Image SO Settings /wp-admin/tools.php?page=image_so | 3.27 | 34.98 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 11 new options
New WordPress options |
---|
image_so_version_number |
widget_recent-comments |
image_so_only_post |
db_upgraded |
theysaidso_admin_options |
image_so_position |
image_so_source_text |
can_compress_scripts |
widget_recent-posts |
image_so_nofollow |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Image Source Overlay
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.68 ▼0.93 | 1.86 ▼0.09 | 43.47 ▲0.31 |
Dashboard /wp-admin | 2,213 ▲25 | 5.91 ▲1.04 | 98.22 ▼18.38 | 35.28 ▼11.21 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.04 ▲0.03 | 39.97 ▲4.30 | 35.52 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.36 ▲0.06 | 642.50 ▼43.00 | 70.92 ▲14.44 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.23 ▲0.03 | 99.62 ▼4.01 | 46.40 ▼0.72 |
Image SO Settings /wp-admin/tools.php?page=image_so | 930 | 2.04 | 24.71 | 28.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- image_so_nofollow
- image_so_version_number
- db_upgraded
- widget_recent-posts
- image_so_only_post
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/image-source-overlay/image-source-overlay.php:13
- > PHP Fatal error
Uncaught Error: Class 'Image_SO\\Inc\\Core\\Image_SO_Base' not found in wp-content/plugins/image-source-overlay/inc/core/class.image_so_updater.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/image-source-overlay/inc/admin/views/admin_page.php:2
- > PHP Fatal error
Uncaught Error: Class 'Image_SO\\Inc\\Core\\Image_SO_Base' not found in wp-content/plugins/image-source-overlay/inc/core/class.image_so_init.php:12
- > PHP Fatal error
Uncaught Error: Class 'Image_SO\\Inc\\Core\\Image_SO_Base' not found in wp-content/plugins/image-source-overlay/inc/admin/class.image_so_admin.php:12
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #2, #3 in image-source-overlay/assets to your readme.txt
image-source-overlay/image-source-overlay.php Passed 13 tests
The main PHP file in "Image Source Overlay" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
32 characters long description:
Adds overlay with image sources.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin430 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 54 | 105 | 390 |
CSS | 1 | 8 | 0 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 3 | 75.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 17 | 73.91% |
▷ Protected methods | 2 | 8.70% |
▷ Private methods | 4 | 17.39% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin