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.11MB] [CPU: ▼17.90ms] Passed 4 tests
A check of server-side resources used by Code Pixelz Simple Responsive Image Gallery Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.65 ▲1.05 |
Dashboard /wp-admin | 3.27 ▼0.07 | 38.06 ▼35.28 |
Posts /wp-admin/edit.php | 3.34 ▼0.02 | 42.38 ▼10.35 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.38 | 82.09 ▼26.84 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.86 ▲0.89 |
All Galleries /wp-admin/edit.php?post_type=code_gallery | 3.32 | 39.02 |
Add New /wp-admin/post-new.php?post_type=code_gallery | 3.32 | 43.07 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Code Pixelz Simple Responsive Image Gallery Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,075 ▲289 | 14.77 ▲0.42 | 6.78 ▲4.79 | 41.39 ▲3.74 |
Dashboard /wp-admin | 2,363 ▲186 | 6.14 ▲0.48 | 112.23 ▲7.54 | 42.82 ▼2.34 |
Posts /wp-admin/edit.php | 2,294 ▲194 | 3.34 ▲1.33 | 48.23 ▲11.78 | 30.74 ▼8.41 |
Add New Post /wp-admin/post-new.php | 1,707 ▲181 | 22.13 ▼1.29 | 586.84 ▼108.80 | 28.20 ▼28.05 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.12 ▼0.07 | 81.57 ▼18.25 | 44.19 ▼1.50 |
All Galleries /wp-admin/edit.php?post_type=code_gallery | 1,298 | 3.44 | 47.20 | 26.01 |
Add New /wp-admin/post-new.php?post_type=code_gallery | 1,692 | 3.60 | 61.98 | 32.66 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=code_gallery
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/cpm-gallery/templates/single-codegallery.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpm-gallery/code_gallery.php:29
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (31 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== cpm-gallery ===
)
cpm-gallery/code_gallery.php 85% from 13 tests
The primary PHP file in "Code Pixelz Simple Responsive Image Gallery Plugin" version 2.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cpm-gallery.php" instead of "code_gallery.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 182 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
Good job! No executable or dangerous file extensions detected3,583 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 647 | 560 | 2,639 |
CSS | 5 | 15 | 41 | 425 |
PHP | 2 | 43 | 65 | 274 |
SVG | 4 | 0 | 0 | 245 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/play-pause.png | 0.59KB | 0.46KB | ▼ 22.77% |
img/error.png | 2.16KB | 1.62KB | ▼ 25.05% |
img/video-play.png | 2.75KB | 1.80KB | ▼ 34.51% |