Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.06ms] Passed 4 tests
An overview of server-side resources used by MANTIS Ad Network
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 47.20 ▲1.60 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.43 ▼0.72 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.76 ▼0.67 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.96 ▼8.46 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.37 ▲3.92 |
MANTIS /wp-admin/options-general.php?page=mantis_ad_options | 3.26 | 34.77 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for MANTIS Ad Network
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲16 | 14.23 ▼0.13 | 1.81 ▼0.36 | 42.66 ▼0.73 |
Dashboard /wp-admin | 2,205 ▲28 | 5.56 ▼0.06 | 85.05 ▼13.68 | 40.01 ▼3.41 |
Posts /wp-admin/edit.php | 2,114 ▲17 | 2.00 ▼0.03 | 35.05 ▼1.09 | 37.22 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.44 ▲0.36 | 651.17 ▼57.06 | 56.63 ▼24.15 |
Media Library /wp-admin/upload.php | 1,416 ▲22 | 4.18 ▼0.00 | 98.85 ▼0.50 | 46.23 ▼3.68 |
MANTIS /wp-admin/options-general.php?page=mantis_ad_options | 969 | 2.03 | 29.21 | 26.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mantis-ad-network/html/advertiser/config.php
- > /wp-content/plugins/mantis-ad-network/html/publisher/recommend.php
- > /wp-content/plugins/mantis-ad-network/html/publisher/styling.php
- > /wp-content/plugins/mantis-ad-network/html/publisher/widgetform.php
- > /wp-content/plugins/mantis-ad-network/html/publisher/config.php
- > /wp-content/plugins/mantis-ad-network/html/publisher/video.php
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: mantis_shortcodes in wp-content/plugins/mantis-ad-network/html/publisher/video.php on line 1
- > PHP Notice
Undefined variable: mantis_shortcodes in wp-content/plugins/mantis-ad-network/html/publisher/video.php on line 6
- > PHP Notice
Undefined variable: zones in wp-content/plugins/mantis-ad-network/html/publisher/widgetform.php on line 1
- > PHP Notice
Undefined variable: site in wp-content/plugins/mantis-ad-network/html/publisher/recommend.php on line 5
- > PHP Notice
Undefined variable: revenue in wp-content/plugins/mantis-ad-network/html/advertiser/config.php on line 6
- > PHP Notice
Undefined variable: advertiser in wp-content/plugins/mantis-ad-network/html/advertiser/config.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mantis-ad-network/woocommerce.php:22
- > PHP Notice
Undefined variable: site in wp-content/plugins/mantis-ad-network/html/publisher/config.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/mantis-ad-network/html/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mantis-ad-network/widget.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
mantis-ad-network/mantis.php 92% from 13 tests
This is the main PHP file of "MANTIS Ad Network" version 1.7.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mantis-ad-network.php" instead of "mantis.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,215 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SQL | 1 | 119 | 180 | 620 |
PHP | 14 | 133 | 36 | 473 |
Bourne Shell | 1 | 27 | 0 | 45 |
YAML | 1 | 3 | 0 | 35 |
Markdown | 1 | 18 | 0 | 25 |
HTML | 3 | 0 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected