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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.05ms] Passed 4 tests
Server-side resources used by Smart Image Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.32 ▲2.50 |
Dashboard /wp-admin | 3.45 ▲0.15 | 53.02 ▼1.76 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 51.62 ▼0.12 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 99.21 ▼6.69 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 40.83 ▲0.38 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_photoshowwidget |
widget_recent-posts |
Browser metrics Passed 4 tests
Smart Image Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.44 ▼1.12 | 1.63 ▼0.31 | 42.12 ▼1.12 |
Dashboard /wp-admin | 2,217 ▲35 | 5.30 ▲0.38 | 118.36 ▲6.24 | 44.06 ▼0.47 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.46 ▲0.41 | 34.32 ▼8.01 | 32.31 ▼5.23 |
Add New Post /wp-admin/post-new.php | 6,193 ▲4,671 | 19.16 ▼4.12 | 945.43 ▲318.34 | 65.65 ▲21.58 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.52 ▲0.31 | 108.45 ▲3.91 | 42.56 ▼5.46 |
Smart Image Gallery /wp-admin/photoshow.php | 26 | 0.44 | 0.16 | 14.12 |
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_photoshowwidget
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 3× 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/photoshow/banner.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/photoshow/banner.php:107
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/photoshow/photoshow.clss.php:369
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/photoshow.php
- > Network (severe)
wp-admin/photoshow.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
photoshow/photoshow.php 92% from 13 tests
The main PHP file in "Smart Image Gallery" ver. 1.0.18 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 329 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,681 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 122 | 88 | 762 |
JavaScript | 5 | 87 | 7 | 537 |
PO File | 3 | 156 | 251 | 261 |
CSS | 4 | 18 | 0 | 121 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/more.png | 0.30KB | 0.18KB | ▼ 40.39% |