Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼7.60ms] Passed 4 tests
An overview of server-side resources used by wp-spoiler-alert
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 43.29 ▲2.88 |
Dashboard /wp-admin | 3.80 ▲0.46 | 53.60 ▼16.94 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 50.85 ▼4.82 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.50 | 98.35 ▼11.53 |
Media Library /wp-admin/upload.php | 3.72 ▲0.50 | 41.51 ▲6.00 |
WP Spoiler Alert /wp-admin/options-general.php?page=wp-spoiler-alert | 3.63 | 41.19 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 235 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by wp-spoiler-alert
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.22 ▼1.41 | 1.68 ▼0.03 | 46.81 ▲0.36 |
Dashboard /wp-admin | 2,228 ▲25 | 4.82 ▼0.08 | 113.25 ▲4.38 | 44.93 ▲1.07 |
Posts /wp-admin/edit.php | 2,083 ▼14 | 2.06 ▲0.05 | 36.64 ▼2.23 | 38.23 ▲4.09 |
Add New Post /wp-admin/post-new.php | 1,543 ▼5 | 23.18 ▲0.14 | 620.28 ▼9.71 | 80.99 ▲3.23 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▼0.01 | 99.57 ▼10.57 | 43.57 ▼6.47 |
WP Spoiler Alert /wp-admin/options-general.php?page=wp-spoiler-alert | 876 | 2.98 | 61.90 | 31.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 141× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-spoiler-alert/vendor/twig/twig/lib/Twig/Node/Expression/BlockReference.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-spoiler-alert/vendor/twig/twig/lib/Twig/Node/Expression/GetAttr.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-spoiler-alert/vendor/twig/twig/lib/Twig/Node/Expression/ExtensionReference.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-spoiler-alert/vendor/twig/twig/lib/Twig/TokenParser/If.php:26
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-spoiler-alert/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Matches.php:11
- > PHP Fatal error
Uncaught Error: Class 'Arrow\\Asset\\Manifest' not found in wp-content/plugins/wp-spoiler-alert/lib/WpSpoilerAlert/FrontEndManifest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/wp-spoiler-alert/vendor/twig/twig/lib/Twig/Node/SetTemp.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/wp-spoiler-alert/vendor/twig/twig/lib/Twig/Node/Module.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-spoiler-alert/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Range.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-spoiler-alert/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Or.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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 to be fixed:
- Screenshots: These screenshots require images: #1 (Screenshot 1), #2 (Screenshot 2)
wp-spoiler-alert/wp-spoiler-alert.php Passed 13 tests
The main PHP file in "wp-spoiler-alert" ver. 0.8.3 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Shortcode to hide Spoilers in your Posts
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
There were no executable files found in this plugin23,178 lines of code in 227 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 2,781 | 7,900 | 11,839 |
PHP | 217 | 2,676 | 5,120 | 11,063 |
JSON | 1 | 0 | 0 | 248 |
CSS | 2 | 4 | 0 | 16 |
HTML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 20 | |
Traits | 0 | |
Classes | 193 | |
▷ Abstract classes | 10 | 5.18% |
▷ Concrete classes | 183 | 94.82% |
▷ Final classes | 0 | 0.00% |
Methods | 1,140 | |
▷ Static methods | 16 | 1.40% |
▷ Public methods | 1,030 | 90.35% |
▷ Protected methods | 108 | 9.47% |
▷ Private methods | 2 | 0.18% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 38 | |
▷ Global constants | 1 | 2.63% |
▷ Class constants | 37 | 97.37% |
▷ Public constants | 37 | 100.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
There are no PNG files in this plugin