Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Compile error in wp-content/plugins/rocket24-analytics/vendor/vierbergenlars/php-semver/src/vierbergenlars/SemVer/internal.php+7
Cannot use vierbergenlars\LibJs\Object as Object because 'Object' is a special class name
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.09ms] Passed 4 tests
This is a short check of server-side resources used by Rocket24 Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.37 ▼7.81 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.02 ▼1.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.58 ▼7.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 112.16 ▲15.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.43 ▲0.17 |
Server storage [IO: ▲9.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2,440 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rocket24 Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.25 | 1.89 ▼0.01 | 40.75 ▼2.60 |
Dashboard /wp-admin | 2,195 ▲21 | 5.54 ▼0.05 | 87.53 ▼21.31 | 40.22 ▼2.31 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.06 | 42.06 ▲2.40 | 34.43 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.01 ▼0.06 | 634.19 ▼68.80 | 58.82 ▲1.62 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.20 ▲0.01 | 100.68 ▼23.00 | 44.89 ▼3.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rocket24-analytics/vendor/google/apiclient/examples/url-shortener.php
- > /wp-content/plugins/rocket24-analytics/vendor/firebase/php-jwt/tests/bootstrap.php
- > /wp-content/plugins/rocket24-analytics/vendor/google/apiclient/examples/idtoken.php
- > /wp-content/plugins/rocket24-analytics/vendor/google/apiclient/examples/multi-api.php
- > /wp-content/plugins/rocket24-analytics/vendor/google/apiclient/examples/simple-file-upload.php
- > /wp-content/plugins/rocket24-analytics/vendor/google/apiclient/examples/large-file-upload.php
- > /wp-content/plugins/rocket24-analytics/vendor/google/apiclient/examples/index.php
- 1283× 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_Test' not found in wp-content/plugins/rocket24-analytics/vendor/twig/twig/lib/Twig/Node/Expression/Test/Sameas.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\RequestMatcher' not found in wp-content/plugins/rocket24-analytics/vendor/symfony/http-foundation/ExpressionRequestMatcher.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\ParameterBag' not found in wp-content/plugins/rocket24-analytics/vendor/symfony/http-foundation/ServerBag.php:21
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/rocket24-analytics/vendor/google/apiclient-services/src/Google/Service/Analytics/Experiments.php:18
- > PHP Fatal error
Uncaught Error: Class 'BaseTest' not found in wp-content/plugins/rocket24-analytics/vendor/google/apiclient/tests/examples/simpleQueryTest.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/rocket24-analytics/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php:40
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/rocket24-analytics/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/rocket24-analytics/vendor/google/apiclient-services/src/Google/Service/Analytics/GoalEventDetails.php:18
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Response' not found in wp-content/plugins/rocket24-analytics/vendor/symfony/http-foundation/JsonResponse.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rocket24-analytics/vendor/symfony/http-foundation/Tests/Session/Storage/NativeSessionStorageTest.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were 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
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== rocket24-analytics ===
)
rocket24-analytics/plugin.php 92% from 13 tests
The main file in "Rocket24 Analytics" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("rocket24-analytics.php" instead of "plugin.php")
Code Analysis 97% from 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 plugin163,204 lines of code in 2,058 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,781 | 30,917 | 78,390 | 145,899 |
Markdown | 56 | 1,798 | 0 | 5,901 |
reStructuredText | 88 | 2,291 | 2,035 | 3,169 |
JSON | 38 | 0 | 0 | 3,082 |
XSD | 3 | 92 | 48 | 2,803 |
C | 2 | 213 | 182 | 1,015 |
XML | 31 | 59 | 42 | 764 |
YAML | 13 | 51 | 2 | 198 |
CSS | 3 | 18 | 26 | 88 |
C/C++ Header | 2 | 19 | 21 | 55 |
Twig | 13 | 7 | 0 | 48 |
m4 | 2 | 13 | 12 | 46 |
PO File | 6 | 7 | 0 | 37 |
Bourne Shell | 2 | 5 | 4 | 34 |
JavaScript | 3 | 0 | 0 | 23 |
HTML | 11 | 0 | 0 | 17 |
Qt Linguist | 1 | 0 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
INI | 2 | 0 | 1 | 6 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 591.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 226 | |
Interfaces | 172 | |
Traits | 14 | |
Classes | 1,597 | |
▷ Abstract classes | 63 | 3.94% |
▷ Concrete classes | 1,534 | 96.06% |
▷ Final classes | 16 | 1.04% |
Methods | 12,475 | |
▷ Static methods | 621 | 4.98% |
▷ Public methods | 10,737 | 86.07% |
▷ Protected methods | 1,277 | 10.24% |
▷ Private methods | 461 | 3.70% |
Functions | 1,043 | |
▷ Named functions | 303 | 29.05% |
▷ Anonymous functions | 740 | 70.95% |
Constants | 624 | |
▷ Global constants | 76 | 12.18% |
▷ Class constants | 548 | 87.82% |
▷ Public constants | 548 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected