Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼12.08ms] Passed 4 tests
A check of server-side resources used by Adshares
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.07 ▼2.25 |
Dashboard /wp-admin | 3.41 ▲0.06 | 51.03 ▼17.75 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 54.45 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.53 ▼22.88 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.67 ▼5.43 |
Adshares /wp-admin/options-general.php?page=adshares-config | 3.91 | 39.89 |
Server storage [IO: ▲2.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,089 new files
Database: no new tables, 7 new options
New WordPress options |
---|
adshares_settings |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Adshares
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.27 ▼0.01 | 1.81 ▲0.17 | 46.14 ▲4.40 |
Dashboard /wp-admin | 2,201 ▲30 | 5.61 ▲0.03 | 92.46 ▲2.21 | 41.96 ▼3.48 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.01 ▲0.01 | 42.66 ▲1.93 | 35.51 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.11 ▲0.01 | 668.38 ▼29.89 | 50.71 ▼5.06 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.24 ▲0.05 | 98.12 ▲0.03 | 44.62 ▼1.27 |
Adshares /wp-admin/options-general.php?page=adshares-config | 840 | 2.00 | 23.75 | 31.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- adshares_settings
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/adshares/adshares.php
- 366× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/adshares/vendor/twig/twig/lib/Twig/Node/Expression/Test/Constant.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/adshares/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/adshares/vendor/twig/twig/test/Twig/Tests/Node/Expression/Unary/NegTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adshares/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adshares/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/adshares/vendor/twig/twig/test/Twig/Tests/Node/Expression/ConstantTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/adshares/vendor/ralouphie/getallheaders/tests/GetAllHeadersTest.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/adshares/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adshares/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/adshares/vendor/twig/twig/lib/Twig/TokenParser/Spaceless.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: adshares, publisher, ad manager, ad, advertising...
adshares/adshares.php Passed 13 tests
The entry point to "Adshares" version 0.1.3 is a PHP file that has certain tags in its header comment area
60 characters long description:
The easiest way to connect your site to the Adshares network
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin37,921 lines of code in 784 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 642 | 6,403 | 11,958 | 29,222 |
reStructuredText | 90 | 2,433 | 2,162 | 3,384 |
Markdown | 13 | 1,024 | 0 | 3,274 |
JSON | 9 | 0 | 0 | 895 |
C | 1 | 171 | 186 | 860 |
Twig | 10 | 6 | 0 | 137 |
YAML | 2 | 13 | 1 | 48 |
XML | 2 | 8 | 0 | 47 |
HTML | 11 | 0 | 0 | 17 |
C/C++ Header | 1 | 7 | 13 | 15 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 1 | 0 | 8 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 4.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 57 | |
Traits | 2 | |
Classes | 612 | |
▷ Abstract classes | 16 | 2.61% |
▷ Concrete classes | 596 | 97.39% |
▷ Final classes | 13 | 2.18% |
Methods | 2,168 | |
▷ Static methods | 99 | 4.57% |
▷ Public methods | 1,837 | 84.73% |
▷ Protected methods | 169 | 7.80% |
▷ Private methods | 162 | 7.47% |
Functions | 224 | |
▷ Named functions | 128 | 57.14% |
▷ Anonymous functions | 96 | 42.86% |
Constants | 112 | |
▷ Global constants | 7 | 6.25% |
▷ Class constants | 105 | 93.75% |
▷ Public constants | 105 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin