Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼295.37ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Obfuscator (PHP Obfuscator)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.14 | 54.30 ▲3.15 |
Dashboard /wp-admin | 3.50 ▲0.09 | 34.24 ▲0.35 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 38.29 ▼4.71 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 94.01 ▼1,178.86 |
Media Library /wp-admin/upload.php | 3.37 ▲0.08 | 25.63 ▲1.74 |
Server storage [IO: ▲3.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 1,038 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Obfuscator (PHP Obfuscator)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,811 ▲67 | 16.22 ▲0.47 | 6.45 ▲0.23 | 2.57 ▲0.38 |
Dashboard /wp-admin | 2,913 ▲52 | 6.16 ▲0.06 | 116.45 ▼16.07 | 175.78 ▲12.61 |
Posts /wp-admin/edit.php | 2,715 ▲27 | 3.26 ▲0.02 | 66.57 ▼0.62 | 140.27 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,738 ▲77 | 22.13 ▲5.47 | 423.85 ▼13.25 | 159.74 ▼2.83 |
Media Library /wp-admin/upload.php | 1,722 ▲24 | 5.63 ▲0.09 | 125.74 ▼17.78 | 204.27 ▲15.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/miniorange-php-guard/miniorange-php-guard/vendor/nikic/php-parser/test_old/run.php
- > /wp-content/plugins/miniorange-php-guard/vendor/nikic/php-parser/grammar/rebuildParsers.php
- > /wp-content/plugins/miniorange-php-guard/vendor/nikic/php-parser/test_old/run.php
- > /wp-content/plugins/miniorange-php-guard/miniorange-php-guard/vendor/nikic/php-parser/grammar/rebuildParsers.php
- > /wp-content/plugins/miniorange-php-guard/miniorange-php-guard/yakpro-po/include/check_version.php
- > /wp-content/plugins/miniorange-php-guard/yakpro-po/include/check_version.php
- 520× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/miniorange-php-guard/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/miniorange-php-guard/miniorange-php-guard/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/StringTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/miniorange-php-guard/miniorange-php-guard/vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/miniorange-php-guard/miniorange-php-guard/vendor/nikic/php-parser/test/PhpParser/Builder/UseTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/miniorange-php-guard/miniorange-php-guard/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\AssignOp' not found in wp-content/plugins/miniorange-php-guard/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/miniorange-php-guard/miniorange-php-guard/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/miniorange-php-guard/vendor/nikic/php-parser/test/PhpParser/BuilderFactoryTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/miniorange-php-guard/miniorange-php-guard/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/miniorange-php-guard/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: protect php code, obfuscator, php guard, obfuscate, obfuscation
miniorange-php-guard/class-mo-php-guard.php 92% from 13 tests
The primary PHP file in "WordPress Obfuscator (PHP Obfuscator)" version 2.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("miniorange-php-guard.php" instead of "class-mo-php-guard.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin26,812 lines of code in 324 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 290 | 3,259 | 4,561 | 21,020 |
Markdown | 23 | 873 | 0 | 2,995 |
yacc | 3 | 297 | 12 | 1,836 |
CSS | 2 | 261 | 1 | 831 |
JSON | 2 | 0 | 0 | 85 |
YAML | 1 | 6 | 0 | 24 |
XML | 1 | 2 | 0 | 16 |
Bourne Shell | 1 | 0 | 0 | 4 |
JavaScript | 1 | 0 | 8 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 277)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 295.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 277.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 538 | |
▷ Abstract classes | 32 | 5.95% |
▷ Concrete classes | 506 | 94.05% |
▷ Final classes | 4 | 0.79% |
Methods | 2,570 | |
▷ Static methods | 62 | 2.41% |
▷ Public methods | 1,952 | 75.95% |
▷ Protected methods | 498 | 19.38% |
▷ Private methods | 120 | 4.67% |
Functions | 2,330 | |
▷ Named functions | 90 | 3.86% |
▷ Anonymous functions | 2,240 | 96.14% |
Constants | 400 | |
▷ Global constants | 12 | 3.00% |
▷ Class constants | 388 | 97.00% |
▷ Public constants | 388 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags16.png | 61.80KB | 19.90KB | ▼ 67.79% |
miniorange-php-guard/images/miniorange.png | 0.44KB | 0.35KB | ▼ 18.61% |
miniorange-php-guard/images/flags16.png | 61.80KB | 19.90KB | ▼ 67.79% |
images/miniorange.png | 0.44KB | 0.35KB | ▼ 18.61% |
miniorange-php-guard/images/logo.png | 2.84KB | 1.59KB | ▼ 44.03% |