Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/mir-ad-network/mir-ad-network.php+314
Undefined offset: 2
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.81ms] Passed 4 tests
An overview of server-side resources used by Mir Ad Network
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 47.74 ▼1.65 |
Dashboard /wp-admin | 3.34 ▲0.03 | 52.71 ▼0.11 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 69.61 ▲13.56 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 111.18 ▲4.84 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.93 ▲4.14 |
Ad Segments /wp-admin/admin.php?page=man-add-ad-slots | 3.29 | 32.50 |
Wallet Address /wp-admin/admin.php?page=man-add-wallet-address | 3.28 | 38.25 |
Ad Approval /wp-admin/admin.php?page=man-approve-ad | 3.30 | 37.20 |
Settings /wp-admin/admin.php?page=man-settings | 3.28 | 36.41 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_ads_size |
wp_min_amount_txid |
wp_adsegment |
wp_wallet_address |
wp_ad_segment_details |
New WordPress options |
---|
can_compress_scripts |
api_server |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
tadn_jal_db_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mir Ad Network
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲114 | 13.32 ▼1.27 | 2.56 ▲0.91 | 41.41 ▼5.72 |
Dashboard /wp-admin | 2,244 ▲56 | 5.83 ▼0.05 | 135.00 ▲25.64 | 46.37 ▲3.80 |
Posts /wp-admin/edit.php | 2,127 ▲41 | 2.02 ▼0.04 | 39.26 ▼0.55 | 34.91 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,570 ▲56 | 18.19 ▼5.35 | 603.80 ▼78.60 | 53.75 ▼0.44 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.21 ▼0.01 | 95.25 ▼4.30 | 44.41 ▼1.32 |
Ad Segments /wp-admin/admin.php?page=man-add-ad-slots | 926 | 2.03 | 34.67 | 32.47 |
Wallet Address /wp-admin/admin.php?page=man-add-wallet-address | 874 | 2.04 | 25.22 | 30.76 |
Ad Approval /wp-admin/admin.php?page=man-approve-ad | 873 | 2.19 | 22.29 | 24.84 |
Settings /wp-admin/admin.php?page=man-settings | 952 | 2.15 | 23.62 | 25.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables were found after uninstall: 5 tables
- wp_ads_size
- wp_min_amount_txid
- wp_wallet_address
- wp_adsegment
- wp_ad_segment_details
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- api_server
- can_compress_scripts
- theysaidso_admin_options
- tadn_jal_db_version
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=man-add-wallet-address
- > Notice in wp-content/plugins/mir-ad-network/includes/add-wallet-address.php+75
Undefined variable: labell
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=man-add-ad-slots
- > Notice in wp-content/plugins/mir-ad-network/includes/add-ad-slots.php+107
Undefined variable: size_id_db
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=man-add-wallet-address
- > Notice in wp-content/plugins/mir-ad-network/includes/add-wallet-address.php+82
Undefined variable: id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=man-add-wallet-address
- > Notice in wp-content/plugins/mir-ad-network/includes/add-wallet-address.php+87
Undefined variable: btntxt
- > GET request to /wp-admin/admin.php?page=man-add-wallet-address
- > Notice in wp-content/plugins/mir-ad-network/includes/add-wallet-address.php+79
Undefined variable: addresss
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mir-ad-network/base58php/vendor/kevinlebrun/colors.php/example.php
- 578× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require(wp-content/plugins/mir-ad-network/base58php/vendor/nategood/commando/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/mir-ad-network/base58php/vendor/nategood/commando/examples/file.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\BaseTag' not found in wp-content/plugins/mir-ad-network/base58php/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_MockObject_Matcher_InvokedRecorder' not found in wp-content/plugins/mir-ad-network/base58php/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastOnce.php:19
- > PHP Fatal error
Uncaught Error: Interface 'phpDocumentor\\Reflection\\Type' not found in wp-content/plugins/mir-ad-network/base58php/vendor/phpdocumentor/type-resolver/src/Types/Boolean.php:20
- > PHP Fatal error
require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/mir-ad-network/base58php/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Prophecy\\Argument\\Token\\TokenInterface' not found in wp-content/plugins/mir-ad-network/base58php/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php:19
- > PHP Fatal error
Uncaught Error: Class 'SebastianBergmann\\Comparator\\ObjectComparator' not found in wp-content/plugins/mir-ad-network/base58php/vendor/sebastian/comparator/src/DateTimeComparator.php:16
- > PHP Parse error
Invalid body indentation level (expecting an indentation level of at least 1) in wp-content/plugins/mir-ad-network/base58php/vendor/sebastian/diff/tests/ParserTest.php on line 78
- > PHP Fatal error
Uncaught Error: Class 'Prophecy\\Exception\\Doubler\\ClassNotFoundException' not found in wp-content/plugins/mir-ad-network/base58php/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/InterfaceNotFoundException.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mir-ad-network/base58php/vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php:14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Mir Ad Network===
)
mir-ad-network/mir-ad-network.php 92% from 13 tests
The main PHP script in "Mir Ad Network" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Git Repository: An alternative Git repository was detected
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/mir-ad-network/base58php/bin/athletic.bat
- ☣ wp-content/plugins/mir-ad-network/base58php/bin/phpunit.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 972 | 13,436 | 28,442 | 60,182 |
YAML | 48 | 211 | 89 | 3,578 |
Markdown | 50 | 1,305 | 0 | 2,751 |
JSON | 32 | 12 | 0 | 2,468 |
XML | 43 | 86 | 11 | 916 |
C | 1 | 152 | 32 | 756 |
Ant | 10 | 91 | 0 | 573 |
SVG | 1 | 0 | 0 | 288 |
XSD | 1 | 0 | 0 | 264 |
C/C++ Header | 2 | 35 | 46 | 122 |
CSS | 3 | 26 | 4 | 98 |
reStructuredText | 1 | 70 | 78 | 62 |
PO File | 1 | 16 | 18 | 42 |
m4 | 1 | 11 | 11 | 41 |
JavaScript | 7 | 5 | 21 | 20 |
Bourne Shell | 2 | 6 | 2 | 12 |
DOS Batch | 2 | 0 | 0 | 8 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 252.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 83 | |
Interfaces | 76 | |
Traits | 2 | |
Classes | 945 | |
▷ Abstract classes | 31 | 3.28% |
▷ Concrete classes | 914 | 96.72% |
▷ Final classes | 54 | 5.91% |
Methods | 4,238 | |
▷ Static methods | 461 | 10.88% |
▷ Public methods | 3,582 | 84.52% |
▷ Protected methods | 342 | 8.07% |
▷ Private methods | 314 | 7.41% |
Functions | 283 | |
▷ Named functions | 173 | 61.13% |
▷ Anonymous functions | 110 | 38.87% |
Constants | 117 | |
▷ Global constants | 13 | 11.11% |
▷ Class constants | 104 | 88.89% |
▷ Public constants | 104 | 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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/imgs/1 (2).png | 2.17KB | 2.11KB | ▼ 2.97% |
includes/imgs/1.png | 0.76KB | 0.84KB | 0.00% |
includes/imgs/1 (1).png | 0.64KB | 0.64KB | 0.15% |
includes/imgs/11.png | 9.70KB | 7.02KB | ▼ 27.67% |