Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼2.79ms] Passed 4 tests
Server-side resources used by AWEOS WP Lock
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 40.42 ▼0.83 |
Dashboard /wp-admin | 3.56 ▲0.25 | 47.00 ▼3.76 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 49.87 ▲1.81 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 92.68 ▼8.39 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 39.18 ▲6.04 |
Server storage [IO: ▲11.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2,022 new files
Database: no new tables, 14 new options
New WordPress options |
---|
can_compress_scripts |
wpLockTo |
wpLockFor |
wpLockUntil |
wpLockMode |
wpLockMessage |
wpLockForI |
widget_theysaidso_widget |
wpLockUpdated |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by AWEOS WP Lock
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 14.21 ▼0.37 | 4.44 ▲2.92 | 36.75 ▼2.38 |
Dashboard /wp-admin | 2,243 ▲68 | 5.90 ▲0.19 | 96.49 ▼12.91 | 39.25 ▼0.16 |
Posts /wp-admin/edit.php | 2,154 ▲51 | 2.84 ▲0.84 | 46.97 ▲2.88 | 36.85 ▲2.68 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 23.87 ▲5.56 | 641.47 ▲25.01 | 35.04 ▼33.94 |
Media Library /wp-admin/upload.php | 1,454 ▲60 | 5.33 ▲1.09 | 104.85 ▲2.34 | 43.32 ▼1.03 |
Uninstaller [IO: ▲0.00MB] [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
- Zombie WordPress options detected upon uninstall: 14 options
- wpLockFrom
- wpLockMessage
- wpLockForI
- wpLockTo
- can_compress_scripts
- wpLockUntil
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- wpLockFor
- ...
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 no errors were found, this is by no means 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/aweos-wp-lock/vendor/symfony/translation/Resources/bin/translation-status.php
- 158× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/aweos-wp-lock/vendor/symfony/translation/Tests/Dumper/IniFileDumperTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/aweos-wp-lock/vendor/symfony/translation/Tests/Dumper/YamlFileDumperTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\PHPStan\\AbstractMacro' not found in wp-content/plugins/aweos-wp-lock/vendor/nesbot/carbon/lazy/Carbon/PHPStan/AbstractMacroStatic.php:20
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\PHPStan\\AbstractMacro' not found in wp-content/plugins/aweos-wp-lock/vendor/nesbot/carbon/lazy/Carbon/PHPStan/AbstractMacroBuiltin.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\BadMethodCallException' not found in wp-content/plugins/aweos-wp-lock/vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentSetterException.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\CarbonInterface' not found in wp-content/plugins/aweos-wp-lock/vendor/nesbot/carbon/src/Carbon/Carbon.php:510
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/aweos-wp-lock/vendor/symfony/translation/Tests/Dumper/PoFileDumperTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Tests\\Loader\\LocalizedTestCase' not found in wp-content/plugins/aweos-wp-lock/vendor/symfony/translation/Tests/Loader/IcuResFileLoaderTest.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\RuntimeException' not found in wp-content/plugins/aweos-wp-lock/vendor/nesbot/carbon/src/Carbon/Exceptions/ImmutableException.php:17
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\PHPStan\\AbstractReflectionMacro' not found in wp-content/plugins/aweos-wp-lock/vendor/nesbot/carbon/lazy/Carbon/PHPStan/MacroWeakType.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #3, #4 in aweos-wp-lock/assets to your readme.txt
aweos-wp-lock/aweos-wp-lock.php Passed 13 tests
The main PHP script in "AWEOS WP Lock" version 1.2.2 is automatically included on every request by WordPress
59 characters long description:
This Plugin displays a coming soon page in development mode
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/aweos-wp-lock/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 677 | 18,506 | 23,518 | 141,128 |
PHP | 872 | 7,322 | 25,902 | 37,852 |
Markdown | 54 | 2,563 | 0 | 7,070 |
JSON | 58 | 0 | 0 | 5,312 |
XSD | 4 | 99 | 76 | 4,991 |
TypeScript | 1 | 84 | 99 | 377 |
XML | 15 | 3 | 0 | 319 |
YAML | 17 | 5 | 6 | 107 |
CSS | 2 | 5 | 0 | 57 |
PO File | 6 | 7 | 0 | 37 |
Qt Linguist | 1 | 0 | 0 | 10 |
Bourne Shell | 2 | 0 | 1 | 7 |
DOS Batch | 1 | 0 | 0 | 4 |
INI | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 351.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 26 | |
Traits | 27 | |
Classes | 173 | |
▷ Abstract classes | 14 | 8.09% |
▷ Concrete classes | 159 | 91.91% |
▷ Final classes | 9 | 5.66% |
Methods | 1,806 | |
▷ Static methods | 386 | 21.37% |
▷ Public methods | 1,559 | 86.32% |
▷ Protected methods | 122 | 6.76% |
▷ Private methods | 125 | 6.92% |
Functions | 296 | |
▷ Named functions | 62 | 20.95% |
▷ Anonymous functions | 234 | 79.05% |
Constants | 99 | |
▷ Global constants | 4 | 4.04% |
▷ Class constants | 95 | 95.96% |
▷ Public constants | 94 | 98.95% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/aweos-partner.png | 5.63KB | 2.12KB | ▼ 62.37% |