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.35MB] [CPU: ▲0.49ms] Passed 4 tests
This is a short check of server-side resources used by Catch Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 39.47 ▲0.29 |
Dashboard /wp-admin | 3.69 ▲0.38 | 45.17 ▼2.75 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 49.41 ▲2.91 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 94.61 ▲4.47 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 36.69 ▲1.51 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Catch Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲44 | 13.90 ▼0.49 | 1.51 ▼0.24 | 43.57 ▼0.72 |
Dashboard /wp-admin | 2,214 ▲37 | 5.58 ▼0.09 | 92.41 ▲3.22 | 38.27 ▼1.74 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 1.98 ▼0.02 | 39.95 ▼1.33 | 36.59 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.26 ▲0.45 | 613.93 ▼84.23 | 32.70 ▼44.78 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.22 ▲0.07 | 105.75 ▲3.83 | 44.41 ▼4.10 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
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
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-gallery/inc/functions.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-gallery/admin/admin.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/catch-gallery/inc/tiled-gallery.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-gallery/admin/sidebar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-gallery/inc/ctp-tabs-removal.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function catch_gallery_get_options() in wp-content/plugins/catch-gallery/admin/display-dashboard.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/catch-gallery/catch-gallery.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-gallery/admin/catch-gallery-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/catch-gallery/inc/CatchThemesThemePlugin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-gallery/inc/jetpack-carousel.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: jetpack, media, gallery, image gallery, tiled gallery...
catch-gallery/catch-gallery.php 92% from 13 tests
Analyzing the main PHP file in "Catch Gallery" version 2.0
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 212 characters long)
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
Everything looks great! No dangerous files found in this plugin6,494 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 510 | 62 | 3,023 |
PHP | 13 | 415 | 343 | 1,780 |
JavaScript | 8 | 326 | 181 | 1,691 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.44 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 10 | 13.33% |
▷ Public methods | 71 | 94.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.33% |
Functions | 15 | |
▷ Named functions | 15 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/free-plugin-246x116.png | 8.01KB | 3.81KB | ▼ 52.42% |
images/carousel-sprite.png | 2.12KB | 1.36KB | ▼ 35.58% |
admin/images/premium-plugin-246x116.png | 9.01KB | 4.16KB | ▼ 53.83% |
images/carousel-sprite-2x.png | 3.04KB | 2.35KB | ▼ 22.72% |
images/arrows-2x.png | 10.66KB | 8.15KB | ▼ 23.51% |