Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼4.40ms] 75% from 4 tests
A check of server-side resources used by Product Screenshot
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 1,576.15ms on /wp-admin/edit.php?post_type=prscrt&page=productscreen-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 37.35 ▼5.75 |
Dashboard /wp-admin | 3.59 ▲0.29 | 48.90 ▼3.12 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 49.74 ▼6.95 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 85.77 ▼1.79 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 39.87 ▲7.57 |
Recommendations /wp-admin/edit.php?post_type=prscrt&page=productscreen-recommendations | 7.90 | 1,576.15 |
Add New /wp-admin/post-new.php?post_type=prscrt | 3.80 | 50.29 |
Settings /wp-admin/edit.php?post_type=prscrt&page=prscrt_options | 3.65 | 39.87 |
All Product Screenshot /wp-admin/edit.php?post_type=prscrt | 3.79 | 43.98 |
Server storage [IO: ▲1.79MB] [DB: ▲0.67MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 191 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
prscrt_option_fields |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Product Screenshot
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.63 ▼0.74 | 4.36 ▲2.50 | 43.44 ▼1.19 |
Dashboard /wp-admin | 2,254 ▲69 | 5.86 ▼0.03 | 99.45 ▼2.58 | 39.97 ▼0.93 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 2.09 ▲0.04 | 37.11 ▼5.38 | 33.34 ▼3.93 |
Add New Post /wp-admin/post-new.php | 1,553 ▲11 | 22.86 ▲4.54 | 670.35 ▲57.86 | 55.31 ▼0.78 |
Media Library /wp-admin/upload.php | 1,447 ▲62 | 4.27 ▲0.09 | 95.26 ▼0.80 | 40.67 ▼2.21 |
Recommendations /wp-admin/edit.php?post_type=prscrt&page=productscreen-recommendations | 3,263 | 3.87 | 58.68 | 99.74 |
Add New /wp-admin/post-new.php?post_type=prscrt | 2,002 | 5.07 | 74.52 | 43.38 |
Settings /wp-admin/edit.php?post_type=prscrt&page=prscrt_options | 7,186 | 6.02 | 248.27 | 45.75 |
All Product Screenshot /wp-admin/edit.php?post_type=prscrt | 1,453 | 3.87 | 60.85 | 27.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- prscrt_option_fields
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'ProductScreenshoot\\Admin\\Recommended_Plugins' not found in wp-content/plugins/product-screenshot/admin/class-recommendation-plugins.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: gallery, product preview, popup, shortcode, screenshot
product-screenshot/product-screenshot.php Passed 13 tests
This is the main PHP file of "Product Screenshot" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
26 characters long description:
Product Screenshot Gallery
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin34,794 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 3,511 | 1,637 | 15,330 |
PO File | 20 | 3,037 | 3,414 | 6,180 |
Sass | 15 | 959 | 3 | 4,837 |
CSS | 7 | 292 | 506 | 4,236 |
JavaScript | 9 | 1,309 | 402 | 4,162 |
SVG | 3 | 0 | 0 | 49 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 24.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 2 | 2.94% |
▷ Concrete classes | 66 | 97.06% |
▷ Final classes | 1 | 1.52% |
Methods | 280 | |
▷ Static methods | 45 | 16.07% |
▷ Public methods | 278 | 99.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.71% |
Functions | 24 | |
▷ Named functions | 24 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/extensions/cf7-extensions-pro.png | 8.57KB | 0.00KB | ▼ 100.00% |
assets/images/extensions/multicurrencypro.png | 19.01KB | 9.36KB | ▼ 50.77% |
assets/images/extensions/swatchly-pro.png | 13.99KB | 5.41KB | ▼ 61.37% |
assets/images/extensions/woolentor-addons-pro.png | 3.20KB | 1.69KB | ▼ 47.09% |
assets/images/extensions/htmega-pro.png | 4.60KB | 4.78KB | 0.00% |