Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲0.05ms] Passed 4 tests
Analyzing server-side resources used by WP Site Screenshot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.22 ▼1.35 |
Dashboard /wp-admin | 3.45 ▲0.14 | 53.72 ▲0.49 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 55.07 ▲2.53 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 109.83 ▲16.16 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.34 ▼1.47 |
All Site /wp-admin/edit.php?post_type=wp_site_captcha | 3.42 | 39.95 |
Settings /wp-admin/edit.php?post_type=wp_site_captcha&page=wpsst_custompost_settings | 3.32 | 36.01 |
Categories /wp-admin/edit-tags.php?taxonomy=wp_site_captcha-categories&post_type=wp_site_captcha | 3.37 | 36.08 |
Add New /wp-admin/post-new.php?post_type=wp_site_captcha | 3.46 | 56.67 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Site Screenshot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲151 | 13.75 ▼1.01 | 8.69 ▲6.83 | 43.35 ▼2.23 |
Dashboard /wp-admin | 2,247 ▲41 | 5.87 ▲1.00 | 114.72 ▲2.36 | 41.13 ▼1.03 |
Posts /wp-admin/edit.php | 2,136 ▲50 | 2.06 ▲0.06 | 41.40 ▲4.88 | 34.02 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.09 ▲0.12 | 677.25 ▼16.14 | 62.81 ▲2.28 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.28 ▲0.04 | 98.95 ▼5.35 | 42.20 ▼3.36 |
All Site /wp-admin/edit.php?post_type=wp_site_captcha | 1,122 | 1.99 | 32.05 | 31.67 |
Settings /wp-admin/edit.php?post_type=wp_site_captcha&page=wpsst_custompost_settings | 846 | 1.71 | 25.93 | 33.08 |
Categories /wp-admin/edit-tags.php?taxonomy=wp_site_captcha-categories&post_type=wp_site_captcha | 1,309 | 2.19 | 28.55 | 28.21 |
Add New /wp-admin/post-new.php?post_type=wp_site_captcha | 1,825 | 3.61 | 64.41 | 35.38 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wp_site_captcha&page=wpsst_custompost_settings
- > Notice in wp-content/plugins/wp-site-screenshot/custompost/class-wp-site-screenshot-custompost.php+554
Trying to access array offset on value of type bool
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
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-site-screenshot/class-wp-site-details-display.php:292
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-site-screenshot/custompost/class-wp-site-screenshot-custompost.php:615
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-site-screenshot/custompost/class-wp-site-screenshot-custompost.php:615
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=wp_site_captcha-categories&post_type=wp_site_captcha
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-site-screenshot//assets/js/admin/wpsst-js-backend-script.js?ver=1.0.0:14:30)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=wp_site_captcha-categories&post_type=wp_site_captcha
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/post-new.php?post_type=wp_site_captcha
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-site-screenshot//assets/js/admin/wpsst-js-backend-script.js?ver=1.0.0:14:30)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=wp_site_captcha
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
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
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #0, #0, #1, #2, #3, #4, #5, #6, #7 in wp-site-screenshot/assets to your readme.txt
wp-site-screenshot/class-wp-site-screenshot.php 92% from 13 tests
"WP Site Screenshot" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-site-screenshot.php" instead of "class-wp-site-screenshot.php")
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
Good job! No executable or dangerous file extensions detected2,311 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 54 | 63 | 1,434 |
PHP | 3 | 51 | 118 | 813 |
JavaScript | 2 | 6 | 16 | 61 |
JSON | 2 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 29.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 7.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 14 | 100.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin