Benchmarks
Plugin footprint 65% 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.07MB] [CPU: ▲3.24ms] Passed 4 tests
This is a short check of server-side resources used by CWD 3D Image Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.55 ▲0.92 |
Dashboard /wp-admin | 3.39 ▲0.05 | 60.92 ▼7.71 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 60.87 ▲5.10 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 145.33 ▲42.17 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 50.98 ▲14.63 |
Server storage [IO: ▲1.83MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/cwd-3d-image-gallery/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 28 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_image_3d_gallery |
wp_image_3d |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
CWD 3D Image Gallery: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,230 ▲484 | 15.70 ▲1.56 | 13.24 ▲11.47 | 46.51 ▲2.40 |
Dashboard /wp-admin | 2,377 ▲174 | 6.40 ▲0.52 | 132.70 ▲26.91 | 105.10 ▲61.14 |
Posts /wp-admin/edit.php | 2,292 ▲192 | 3.43 ▲1.39 | 84.55 ▲40.51 | 88.37 ▲49.95 |
Add New Post /wp-admin/post-new.php | 1,562 ▲7 | 21.01 ▼1.68 | 823.06 ▲142.59 | 42.34 ▼14.34 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.30 ▲0.02 | 123.44 ▲19.14 | 129.79 ▲84.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 2 tables in the database
- wp_image_3d
- wp_image_3d_gallery
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cwd-3d-image-gallery/index.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (**Dahboard** - CWD 3D Image Gallery plugin dashboard), #2 (**Settings** - CWD 3D Image Gallery Settings), #3 (**Horizontal** - Horizontal Animation), #4 (**Vertical** - Vertical Animation)
cwd-3d-image-gallery/index.php 92% from 13 tests
The primary PHP file in "CWD 3D Image Gallery" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cwd-3d-image-gallery.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,347 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 335 | 222 | 611 |
PHP | 1 | 182 | 9 | 449 |
CSS | 1 | 47 | 6 | 287 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 11 | |
▷ Named functions | 11 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 1.05MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/settings.png | 3.04KB | 0.46KB | ▼ 85.02% |
images/options.png | 1.82KB | 0.69KB | ▼ 61.99% |
images/close-button.png | 1.44KB | 1.38KB | ▼ 4.34% |
images/fancy_deboss.png | 3.61KB | 0.25KB | ▼ 93.02% |
images/delete.png | 2.95KB | 0.32KB | ▼ 89.29% |