Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.32MB] [CPU: ▲2.71ms] Passed 4 tests
Analyzing server-side resources used by Fleeps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.83 ▲1.37 | 44.06 ▲4.93 |
Dashboard /wp-admin | 4.67 ▲1.32 | 54.94 ▼11.94 |
Posts /wp-admin/edit.php | 4.72 ▲1.36 | 60.93 ▲7.68 |
Add New Post /wp-admin/post-new.php | 7.19 ▲1.30 | 107.03 ▲10.18 |
Media Library /wp-admin/upload.php | 4.53 ▲1.30 | 46.25 ▲11.27 |
Server storage [IO: ▲8.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2,269 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Fleeps
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲44 | 14.04 ▼0.75 | 1.66 ▲0.04 | 37.19 ▼1.00 |
Dashboard /wp-admin | 2,205 ▲28 | 5.61 ▲0.03 | 96.40 ▼4.74 | 43.73 ▼1.75 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▲0.06 | 39.82 ▼0.33 | 36.35 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.45 ▲0.42 | 699.11 ▲105.18 | 59.52 ▲4.35 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.17 ▼0.06 | 95.02 ▼6.33 | 42.92 ▲1.26 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fleeps/vendor/phpcompatibility/php-compatibility/phpunit-bootstrap.php
- 1045× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpClient\\Internal\\ClientState' not found in wp-content/plugins/fleeps/vendor/symfony/http-client/Internal/NativeClientState.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/fleeps/vendor/twig/twig/src/Node/Expression/Binary/AbstractBinary.php:19
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ClosingPHPTagSniff.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/fleeps/vendor/nyholm/psr7/src/UploadedFile.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/ArrayKeywordTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/fleeps/vendor/twig/twig/src/Node/Expression/MethodCallExpression.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\AbstractFunctionCallParameterSniff' not found in wp-content/plugins/fleeps/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/ParameterValues/RemovedNonCryptoHashSniff.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestFactoryInterface' not found in wp-content/plugins/fleeps/vendor/nyholm/psr7/src/Factory/Psr17Factory.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fleeps/vendor/symfony/http-client-contracts/Test/HttpClientTestCase.php:24
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 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
1 plugin tags: fleeps
fleeps/fleeps-wordpress-export.php 69% from 13 tests
"Fleeps" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.9.1" instead of "5.2")
- Main file name: Name the main plugin file the same as the plugin slug ("fleeps.php" instead of "fleeps-wordpress-export.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/fleeps/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,386 | 30,278 | 57,370 | 133,704 |
Markdown | 37 | 2,353 | 0 | 7,270 |
Pascal | 130 | 3,231 | 7,118 | 6,576 |
XML | 174 | 427 | 776 | 5,981 |
JSON | 26 | 0 | 0 | 2,879 |
JavaScript | 56 | 756 | 859 | 2,089 |
CSS | 33 | 189 | 92 | 665 |
XSD | 1 | 6 | 0 | 130 |
HTML | 1 | 3 | 0 | 18 |
DOS Batch | 2 | 4 | 10 | 10 |
reStructuredText | 1 | 8 | 5 | 10 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 478)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 14.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 724.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 478.00 |
Code structure | ||
---|---|---|
Namespaces | 253 | |
Interfaces | 63 | |
Traits | 17 | |
Classes | 1,138 | |
▷ Abstract classes | 35 | 3.08% |
▷ Concrete classes | 1,103 | 96.92% |
▷ Final classes | 134 | 12.15% |
Methods | 4,703 | |
▷ Static methods | 360 | 7.65% |
▷ Public methods | 3,944 | 83.86% |
▷ Protected methods | 432 | 9.19% |
▷ Private methods | 327 | 6.95% |
Functions | 394 | |
▷ Named functions | 182 | 46.19% |
▷ Anonymous functions | 212 | 53.81% |
Constants | 290 | |
▷ Global constants | 123 | 42.41% |
▷ Class constants | 167 | 57.59% |
▷ Public constants | 144 | 86.23% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin