Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Compile error in wp-content/plugins/adentify/vendor/guzzlehttp/guzzle/src/Event/Emitter.php+49
Cannot use lexical variable $eventName as a parameter name
Server metrics [RAM: ▼0.00MB] [CPU: ▼145.38ms] Passed 4 tests
A check of server-side resources used by AdEntify
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 37.87 ▲13.38 |
Dashboard /wp-admin | 3.06 ▲0.00 | 38.06 ▼15.60 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 51.59 ▼2.87 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 98.04 ▼568.87 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 44.11 ▲5.81 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 895 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
AdEntify: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.20 ▲0.45 | 13.55 ▲0.90 | 48.76 ▼7.00 |
Dashboard /wp-admin | 2,970 ▲39 | 5.90 ▼0.32 | 163.76 ▲6.58 | 112.94 ▼5.90 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.02 | 72.53 ▼5.20 | 92.70 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.55 ▼2.84 | 460.89 ▲132.13 | 118.92 ▲6.83 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.05 ▼0.02 | 188.69 ▲27.89 | 168.82 ▲45.79 |
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
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/adentify/adentify.php
- 309× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Tests_Profiler_Dumper_AbstractTest' not found in wp-content/plugins/adentify/vendor/twig/twig/test/Twig/Tests/Profiler/Dumper/TextTest.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Post\\PostFileInterface' not found in wp-content/plugins/adentify/vendor/guzzlehttp/guzzle/src/Post/PostFile.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Message\\MessageInterface' not found in wp-content/plugins/adentify/vendor/guzzlehttp/guzzle/src/Message/AbstractMessage.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Twig_LoaderInterface' not found in wp-content/plugins/adentify/vendor/twig/twig/lib/Twig/Loader/String.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig_Profiler_Dumper_Text' not found in wp-content/plugins/adentify/vendor/twig/twig/lib/Twig/Profiler/Dumper/Html.php:15
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/adentify/vendor/twig/twig/test/Twig/Tests/Node/Expression/ParentTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/adentify/vendor/twig/twig/lib/Twig/Node/Expression/Test/Odd.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/adentify/vendor/twig/twig/lib/Twig/Node/Expression/Array.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/adentify/vendor/twig/extensions/lib/Twig/Extensions/SimpleTokenParser.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/adentify/vendor/twig/twig/test/Twig/Tests/ErrorTest.php:12
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== adentify ===
)
adentify/adentify.php Passed 13 tests
The primary PHP file in "AdEntify" version 1.0.10 is used by WordPress to initiate all plugin functionality
34 characters long description:
A brief description of the Plugin.
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected38,818 lines of code in 619 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 390 | 4,698 | 10,328 | 22,513 |
JavaScript | 54 | 888 | 1,071 | 5,990 |
reStructuredText | 107 | 3,323 | 3,325 | 4,849 |
Markdown | 5 | 403 | 0 | 1,837 |
CSS | 5 | 155 | 35 | 1,039 |
C | 1 | 166 | 150 | 793 |
JSON | 11 | 5 | 0 | 549 |
Twig | 16 | 10 | 15 | 549 |
PO File | 2 | 90 | 0 | 196 |
make | 3 | 43 | 5 | 179 |
XML | 4 | 4 | 0 | 77 |
YAML | 4 | 17 | 0 | 73 |
Bourne Shell | 1 | 24 | 0 | 55 |
HTML | 13 | 0 | 0 | 55 |
Python | 1 | 22 | 23 | 48 |
C/C++ Header | 1 | 7 | 13 | 11 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 6.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 38 | |
Traits | 4 | |
Classes | 359 | |
▷ Abstract classes | 19 | 5.29% |
▷ Concrete classes | 340 | 94.71% |
▷ Final classes | 1 | 0.29% |
Methods | 1,957 | |
▷ Static methods | 55 | 2.81% |
▷ Public methods | 1,721 | 87.94% |
▷ Protected methods | 128 | 6.54% |
▷ Private methods | 108 | 5.52% |
Functions | 119 | |
▷ Named functions | 98 | 82.35% |
▷ Anonymous functions | 21 | 17.65% |
Constants | 81 | |
▷ Global constants | 21 | 25.93% |
▷ Class constants | 60 | 74.07% |
▷ Public constants | 60 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/vendor/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
images/tagShape6.png | 3.27KB | 0.39KB | ▼ 87.92% |
images/tag-background.png | 1.34KB | 1.18KB | ▼ 11.66% |
images/tagShape2.png | 3.27KB | 0.39KB | ▼ 87.94% |
images/tagShape7.png | 3.11KB | 0.41KB | ▼ 86.73% |