Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.84MB] [CPU: ▲2.68ms] Passed 4 tests
Server-side resources used by Wp Post Rating
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.83 | 41.31 ▲4.57 |
Dashboard /wp-admin | 4.15 ▲0.85 | 52.16 ▲4.80 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 60.92 ▲12.60 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.86 | 92.04 ▼4.64 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 44.84 ▲5.97 |
WPR Settings /wp-admin/admin.php?page=wpr-settings | 4.39 | 42.10 |
Stars rating /wp-admin/options-general.php?page=wp-post-rating | 4.20 | 40.08 |
Server storage [IO: ▲3.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,091 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
wpr_settings |
widget_recent-comments |
widget_wpr_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Wp Post Rating: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲158 | 13.98 ▼0.60 | 9.67 ▲7.67 | 37.17 ▼9.53 |
Dashboard /wp-admin | 2,212 ▲30 | 4.89 ▼0.97 | 131.70 ▲29.35 | 54.25 ▲7.03 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.02 ▼0.01 | 39.97 ▼1.44 | 37.36 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,518 ▲4 | 17.57 ▲0.08 | 676.35 ▼15.12 | 59.65 ▲7.58 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.13 | 102.02 ▼5.65 | 47.98 ▲5.58 |
WPR Settings /wp-admin/admin.php?page=wpr-settings | 962 | 2.03 | 27.69 | 26.90 |
Stars rating /wp-admin/options-general.php?page=wp-post-rating | 983 | 2.06 | 23.88 | 30.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- wpr_settings
- widget_wpr_widget
- db_upgraded
- widget_theysaidso_widget
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
Good news, no errors were detected
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
The following issues need your attention
- 616× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/wp-post-rating/vendor/twig/twig/src/Sandbox/SecurityNotAllowedFunctionError.php:19
- > PHP Fatal error
Uncaught Error: Interface 'WPR_Vendor\\Twig\\RuntimeLoader\\RuntimeLoaderInterface' not found in wp-content/plugins/wp-post-rating/vendor_prefixed/twig/RuntimeLoader/ContainerRuntimeLoader.php:22
- > PHP Fatal error
Uncaught Error: Class 'WPR_Vendor\\Twig\ode\\Expression\\ConditionalExpression' not found in wp-content/plugins/wp-post-rating/vendor_prefixed/twig/Node/Expression/NullCoalesceExpression.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/wp-post-rating/vendor/twig/twig/src/NodeVisitor/SandboxNodeVisitor.php:32
- > PHP Fatal error
Uncaught Error: Interface 'WPR_Vendor\\Symfony\\Component\\Config\\Resource\\SelfCheckingResourceInterface' not found in wp-content/plugins/wp-post-rating/vendor_prefixed/symfony_config/Resource/ReflectionClassResource.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Config\\Resource\\ResourceInterface' not found in wp-content/plugins/wp-post-rating/vendor/symfony/dependency-injection/Config/ContainerParametersResource.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Error\\Error' not found in wp-content/plugins/wp-post-rating/vendor/twig/twig/src/Error/SyntaxError.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Config\\Definition\\Builder\odeDefinition' not found in wp-content/plugins/wp-post-rating/vendor/symfony/config/Definition/Builder/VariableNodeDefinition.php:21
- > PHP Fatal error
Uncaught Error: Interface 'WPR_Vendor\\Symfony\\Component\\Config\\ResourceCheckerInterface' not found in wp-content/plugins/wp-post-rating/vendor_prefixed/symfony_container/dependency-injection/Config/ContainerParametersResourceChecker.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-post-rating/src/Wordpress/WPR_Widget.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: google rating, rating, seo rating, postrating, ratings...
wp-post-rating/wp-post-rating.php Passed 13 tests
"Wp Post Rating" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
37 characters long description:
Powerful post rating wordpress plugin
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected63,975 lines of code in 1,055 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 913 | 8,429 | 24,118 | 58,987 |
reStructuredText | 112 | 2,376 | 2,303 | 2,872 |
JSON | 1 | 0 | 0 | 835 |
Markdown | 4 | 106 | 0 | 369 |
XSD | 1 | 29 | 2 | 299 |
JavaScript | 6 | 22 | 0 | 196 |
Twig | 11 | 3 | 0 | 174 |
PO File | 1 | 43 | 44 | 124 |
Bourne Shell | 1 | 6 | 1 | 43 |
YAML | 1 | 7 | 4 | 39 |
HTML | 1 | 1 | 0 | 21 |
SVG | 1 | 2 | 0 | 14 |
CSS | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 11.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 560.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 121 | |
Interfaces | 102 | |
Traits | 50 | |
Classes | 749 | |
▷ Abstract classes | 46 | 6.14% |
▷ Concrete classes | 703 | 93.86% |
▷ Final classes | 133 | 18.92% |
Methods | 3,924 | |
▷ Static methods | 158 | 4.03% |
▷ Public methods | 3,149 | 80.25% |
▷ Protected methods | 279 | 7.11% |
▷ Private methods | 496 | 12.64% |
Functions | 342 | |
▷ Named functions | 180 | 52.63% |
▷ Anonymous functions | 162 | 47.37% |
Constants | 190 | |
▷ Global constants | 5 | 2.63% |
▷ Class constants | 185 | 97.37% |
▷ Public constants | 179 | 96.76% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin