Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Compile error in wp-content/plugins/easy-affiliate-cloaker/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: ▼10.09ms] Passed 4 tests
Analyzing server-side resources used by Easy Affiliate Cloaker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.64 ▼0.96 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.48 ▼4.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.06 ▼7.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.84 ▼18.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.87 ▼9.97 |
Server storage [IO: ▲8.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2,487 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Affiliate Cloaker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.58 ▼0.86 | 4.69 ▲2.94 | 43.77 ▲4.53 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.05 | 105.61 ▼6.16 | 40.67 ▼1.94 |
Posts /wp-admin/edit.php | 2,071 ▼18 | 2.03 ▲0.06 | 34.22 ▼7.23 | 32.30 ▼5.33 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 22.96 ▼0.29 | 603.45 ▼66.17 | 63.00 ▲14.42 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▲0.02 | 97.29 ▼17.95 | 44.66 ▼3.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-affiliate-cloaker/vendor/doctrine/dbal/bin/doctrine-dbal.php
- > /wp-content/plugins/easy-affiliate-cloaker/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
- 1249× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Response' not found in wp-content/plugins/easy-affiliate-cloaker/vendor/symfony/http-foundation/RedirectResponse.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\FilterIterator' not found in wp-content/plugins/easy-affiliate-cloaker/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-affiliate-cloaker/vendor/symfony/translation/Tests/IdentityTranslatorTest.php:17
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/easy-affiliate-cloaker/vendor/getherbert/framework/bootstrap/autoload.php on line 20
- > PHP Fatal error
Uncaught Error: Interface 'Herbert\\Framework\\Plugin' not found in wp-content/plugins/easy-affiliate-cloaker/vendor/getherbert/framework/Herbert/Framework/Base/Plugin.php:9
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\DBAL\\Types\\StringType' not found in wp-content/plugins/easy-affiliate-cloaker/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/GuidType.php:30
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser_Include' not found in wp-content/plugins/easy-affiliate-cloaker/vendor/twig/twig/lib/Twig/TokenParser/Embed.php:17
- > PHP Fatal error
Uncaught Error: Class 'vierbergenlars\\LibJs\\Object' not found in wp-content/plugins/easy-affiliate-cloaker/vendor/vierbergenlars/php-semver/src/vierbergenlars/LibJs/JString.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TokenParserInterface' not found in wp-content/plugins/easy-affiliate-cloaker/vendor/twig/twig/lib/Twig/TokenParser.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Call' not found in wp-content/plugins/easy-affiliate-cloaker/vendor/twig/twig/lib/Twig/Node/Expression/Test.php:11
- > 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 on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Contributors: Plugin contributors field is missing
easy-affiliate-cloaker/plugin.php 85% from 13 tests
The principal PHP file in "Easy Affiliate Cloaker" v. 1.0.4 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-affiliate-cloaker.php" instead of "plugin.php")
- Git Repository: Please remove the Git repository from this plugin
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin161,319 lines of code in 2,071 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,790 | 32,988 | 84,654 | 141,565 |
Markdown | 51 | 1,996 | 0 | 5,935 |
reStructuredText | 97 | 3,184 | 3,088 | 4,414 |
JSON | 41 | 0 | 0 | 3,374 |
XSD | 3 | 92 | 48 | 2,803 |
C | 2 | 224 | 192 | 1,082 |
XML | 30 | 83 | 78 | 682 |
Twig | 12 | 16 | 0 | 459 |
make | 4 | 47 | 5 | 202 |
YAML | 13 | 46 | 3 | 194 |
PO File | 7 | 62 | 56 | 186 |
JavaScript | 1 | 18 | 60 | 163 |
Ant | 1 | 13 | 0 | 97 |
C/C++ Header | 2 | 19 | 21 | 55 |
m4 | 2 | 13 | 12 | 46 |
Python | 1 | 18 | 22 | 28 |
HTML | 11 | 0 | 0 | 17 |
Qt Linguist | 1 | 0 | 0 | 10 |
INI | 2 | 1 | 0 | 7 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to 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.27 |
Average class complexity | 7.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 267 | |
Interfaces | 217 | |
Traits | 11 | |
Classes | 1,545 | |
▷ Abstract classes | 89 | 5.76% |
▷ Concrete classes | 1,456 | 94.24% |
▷ Final classes | 28 | 1.92% |
Methods | 13,130 | |
▷ Static methods | 799 | 6.09% |
▷ Public methods | 11,022 | 83.95% |
▷ Protected methods | 1,578 | 12.02% |
▷ Private methods | 530 | 4.04% |
Functions | 1,082 | |
▷ Named functions | 274 | 25.32% |
▷ Anonymous functions | 808 | 74.68% |
Constants | 571 | |
▷ Global constants | 57 | 9.98% |
▷ Class constants | 514 | 90.02% |
▷ Public constants | 514 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.24MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/guzzlehttp/guzzle/docs/_static/guzzle-icon.png | 0.78KB | 0.94KB | 0.00% |
vendor/guzzlehttp/guzzle/docs/_static/logo.png | 241.87KB | 69.68KB | ▼ 71.19% |