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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▲0.95ms] Passed 4 tests
This is a short check of server-side resources used by Unmask
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 42.03 ▼1.10 |
Dashboard /wp-admin | 3.60 ▲0.29 | 53.26 ▲3.70 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 56.05 ▲5.39 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 99.10 ▲6.37 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 38.63 ▼4.20 |
Unmask Logs /wp-admin/edit.php?post_type=unmask_log | 3.61 | 46.55 |
Server storage [IO: ▲3.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,468 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Unmask
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.35 ▼1.29 | 1.62 ▼0.44 | 42.15 ▼2.29 |
Dashboard /wp-admin | 2,207 ▲16 | 5.84 ▲0.93 | 98.78 ▼7.44 | 42.52 ▲6.01 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.01 | 40.91 ▼0.04 | 37.00 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 21.07 ▲3.30 | 723.44 ▲26.96 | 55.69 ▼4.31 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.22 ▼0.11 | 103.32 ▲3.12 | 44.04 ▼3.18 |
Unmask Logs /wp-admin/edit.php?post_type=unmask_log | 1,623 | 1.99 | 34.55 | 30.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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 fix the following
- 517× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/unmask/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/unmask/vendor/twig/twig/test/Twig/Tests/Node/AutoEscapeTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Expose\\Export' not found in wp-content/plugins/unmask/vendor/enygma/expose/src/Expose/Export/Loopback.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/unmask/vendor/monolog/monolog/tests/Monolog/LoggerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Sandbox_SecurityError' not found in wp-content/plugins/unmask/vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedTagError.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/unmask/vendor/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_BaseNodeVisitor' not found in wp-content/plugins/unmask/vendor/twig/twig/lib/Twig/Profiler/NodeVisitor/Profiler.php:15
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/unmask/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Descriptor\\Descriptor' not found in wp-content/plugins/unmask/vendor/symfony/console/Descriptor/MarkdownDescriptor.php:29
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/unmask/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: intrusion detection, security, logging
unmask/unmask.php Passed 13 tests
The main PHP file in "Unmask" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
28 characters long description:
Expose support for WordPress
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/unmask/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .bat - Batch File in Windows
- ☣ wp-content/plugins/unmask/vendor/enygma/expose/docs/make.bat
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 867 | 11,581 | 19,031 | 51,870 |
reStructuredText | 89 | 2,084 | 1,922 | 2,711 |
JSON | 33 | 1 | 0 | 2,605 |
Markdown | 39 | 721 | 0 | 1,807 |
JavaScript | 7 | 170 | 318 | 1,372 |
CSS | 4 | 212 | 51 | 812 |
XML | 28 | 36 | 0 | 626 |
HTML | 14 | 49 | 0 | 425 |
C | 1 | 52 | 8 | 223 |
DOS Batch | 1 | 29 | 1 | 212 |
make | 1 | 28 | 6 | 143 |
m4 | 1 | 11 | 11 | 41 |
C/C++ Header | 1 | 12 | 8 | 40 |
Twig | 9 | 9 | 0 | 33 |
Python | 1 | 69 | 154 | 32 |
YAML | 2 | 6 | 1 | 32 |
INI | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 83 | |
Interfaces | 48 | |
Traits | 5 | |
Classes | 836 | |
▷ Abstract classes | 32 | 3.83% |
▷ Concrete classes | 804 | 96.17% |
▷ Final classes | 53 | 6.59% |
Methods | 4,031 | |
▷ Static methods | 137 | 3.40% |
▷ Public methods | 3,356 | 83.25% |
▷ Protected methods | 407 | 10.10% |
▷ Private methods | 268 | 6.65% |
Functions | 329 | |
▷ Named functions | 111 | 33.74% |
▷ Anonymous functions | 218 | 66.26% |
Constants | 136 | |
▷ Global constants | 7 | 5.15% |
▷ Class constants | 129 | 94.85% |
▷ Public constants | 129 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/enygma/expose/docs/_build/html/_static/up-pressed.png | 0.36KB | 0.31KB | ▼ 14.25% |
vendor/enygma/expose/docs/_build/html/_static/minus.png | 0.19KB | 0.11KB | ▼ 44.72% |
vendor/enygma/expose/docs/_build/html/_static/comment.png | 3.36KB | 0.75KB | ▼ 77.62% |
vendor/enygma/expose/docs/_build/html/_static/up.png | 0.35KB | 0.31KB | ▼ 12.12% |
vendor/enygma/expose/docs/_build/html/_static/comment-bright.png | 3.42KB | 0.86KB | ▼ 74.97% |