Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.62MB] [CPU: ▼5.51ms] Passed 4 tests
This is a short check of server-side resources used by Media.net Ads Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.91 | 56.70 ▲10.63 |
Dashboard /wp-admin | 3.92 ▲0.61 | 53.18 ▼3.98 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 54.40 ▲2.98 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.72 | 81.87 ▼23.02 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 41.81 ▲1.98 |
Server storage [IO: ▲2.15MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 138 new files
Database: 8 new tables, 10 new options
New tables |
---|
wp_mnet_ad_tags |
wp_mnet_external_ad |
wp_mnet_ad_slots |
wp_mnet_ad_post_mapping |
wp_mnet_blocked_urls |
wp_mnet_slot_blocked_urls |
wp_mnet_ad_paragraph_mapping |
wp_mnet_log_retry |
New WordPress options |
---|
MNET_DB_VERSION |
widget_theysaidso_widget |
widget_mnet_widget_above |
widget_recent-comments |
db_upgraded |
MNET_PLUGIN_VERSION |
can_compress_scripts |
widget_recent-posts |
widget_mnet_widget_below |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Media.net Ads Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.24 ▼0.28 | 1.78 ▲0.07 | 45.83 ▲3.23 |
Dashboard /wp-admin | 2,197 ▲17 | 5.54 ▼0.07 | 95.76 ▼5.92 | 84.67 ▲38.27 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 1.97 ▲0.00 | 37.99 ▲0.53 | 33.65 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,556 ▲21 | 22.96 ▲4.57 | 700.82 ▲45.71 | 57.39 ▼11.61 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.20 ▼0.03 | 96.86 ▼2.29 | 77.44 ▲35.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 8 tables in the database
- wp_mnet_ad_post_mapping
- wp_mnet_slot_blocked_urls
- wp_mnet_ad_tags
- wp_mnet_ad_paragraph_mapping
- wp_mnet_external_ad
- wp_mnet_ad_slots
- wp_mnet_blocked_urls
- wp_mnet_log_retry
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_mnet_widget_below
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_mnet_widget_above
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | 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
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/media-net-ads-manager/app/views/MnetBundleLoadError.php
- > /wp-content/plugins/media-net-ads-manager/app/views/mnetAnalytics.php
- > /wp-content/plugins/media-net-ads-manager/index.php
- > /wp-content/plugins/media-net-ads-manager/app/views/mnetBundleLoader.php
- > /wp-content/plugins/media-net-ads-manager/app/views/adBlockHandler.php
- > /wp-content/plugins/media-net-ads-manager/uninstall.php
- 68× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/media-net-ads-manager/app/public/widgets/mnet_ad_widget_below.php:5
- > PHP Warning
Use of undefined constant MNET_AD_POSITION_BELOW_POST_LISTING - assumed 'MNET_AD_POSITION_BELOW_POST_LISTING' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-net-ads-manager/app/utils/adPresets.php on line 7
- > PHP Warning
Use of undefined constant MNET_AD_POSITION_ABOVE_POST_LISTING - assumed 'MNET_AD_POSITION_ABOVE_POST_LISTING' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-net-ads-manager/app/utils/adPresets.php on line 15
- > PHP Warning
Use of undefined constant MNET_AD_SIZE_300x250 - assumed 'MNET_AD_SIZE_300x250' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-net-ads-manager/app/utils/adPresets.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'Walker_Comment' not found in wp-content/plugins/media-net-ads-manager/app/public/MnetCommentWalker.php:4
- > PHP Warning
Use of undefined constant MNET_AD_SIZE_300x250 - assumed 'MNET_AD_SIZE_300x250' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-net-ads-manager/app/utils/adPresets.php on line 11
- > PHP Warning
Use of undefined constant MNET_AD_SIZE_336x280 - assumed 'MNET_AD_SIZE_336x280' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-net-ads-manager/app/utils/adPresets.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function mnet_normalize_chunks() in wp-content/plugins/media-net-ads-manager/app/views/mnetScripts.php:21
- > PHP Warning
Use of undefined constant MNET_AD_SIZE_728x90 - assumed 'MNET_AD_SIZE_728x90' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-net-ads-manager/app/utils/adPresets.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/media-net-ads-manager/app/public/widgets/mnet_ad_widget_above.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: beta, mnet ads, medianet, medianet ads manager, ads manager
media-net-ads-manager/index.php 92% from 13 tests
The main file in "Media.net Ads Manager" v. 2.10.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("media-net-ads-manager.php" instead of "index.php")
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
There were no executable files found in this plugin7,427 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 1,230 | 1,680 | 6,791 |
Markdown | 2 | 84 | 0 | 218 |
JSON | 7 | 0 | 0 | 187 |
SVG | 3 | 0 | 2 | 107 |
JavaScript | 7 | 11 | 3 | 105 |
XML | 1 | 0 | 0 | 18 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 455 | |
▷ Static methods | 286 | 62.86% |
▷ Public methods | 424 | 93.19% |
▷ Protected methods | 11 | 2.42% |
▷ Private methods | 20 | 4.40% |
Functions | 35 | |
▷ Named functions | 8 | 22.86% |
▷ Anonymous functions | 27 | 77.14% |
Constants | 51 | |
▷ Global constants | 41 | 80.39% |
▷ Class constants | 10 | 19.61% |
▷ Public constants | 10 | 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
32 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Between Post Listing.png | 1.02KB | 1.01KB | ▼ 1.44% |
images/After Post.png | 1.31KB | 1.29KB | ▼ 1.79% |
images/After Title.png | 1.14KB | 1.13KB | ▼ 1.03% |
images/After Content.png | 0.77KB | 0.76KB | ▼ 1.77% |
images/Static Page.png | 1.27KB | 1.25KB | ▼ 1.08% |