Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼296.13ms] Passed 4 tests
An overview of server-side resources used by Ads Benedict
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 56.25 ▲8.27 |
Dashboard /wp-admin | 3.56 ▲0.15 | 32.92 ▲1.83 |
Posts /wp-admin/edit.php | 3.78 ▲0.14 | 37.31 ▲1.79 |
Add New Post /wp-admin/post-new.php | 7.03 ▲0.06 | 93.52 ▼1,188.60 |
Media Library /wp-admin/upload.php | 3.44 ▲0.15 | 26.96 ▲0.47 |
Add New /wp-admin/post-new.php?post_type=adsbenedict | 3.73 | 43.73 |
Ads /wp-admin/edit.php?post_type=adsbenedict | 3.48 | 26.76 |
Advertisers /wp-admin/edit-tags.php?taxonomy=advertisers&post_type=adsbenedict | 3.44 | 24.05 |
Zones /wp-admin/edit-tags.php?taxonomy=zone&post_type=adsbenedict | 3.44 | 26.41 |
Ad's Benedict Settings /wp-admin/edit.php?post_type=adsbenedict&page=absetting | 3.41 | 24.29 |
Server storage [IO: ▲0.03MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Ads Benedict: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,022 ▲278 | 16.81 ▲1.17 | 12.03 ▲5.70 | 2.91 ▲0.76 |
Dashboard /wp-admin | 2,971 ▲110 | 6.21 ▲0.04 | 108.83 ▼26.82 | 162.20 ▲2.05 |
Posts /wp-admin/edit.php | 2,767 ▲73 | 3.27 ▲0.03 | 72.66 ▲10.41 | 166.02 ▲20.82 |
Add New Post /wp-admin/post-new.php | 1,722 ▲62 | 18.16 ▲2.59 | 406.51 ▼54.13 | 177.98 ▲32.72 |
Media Library /wp-admin/upload.php | 1,779 ▲81 | 5.70 ▲0.16 | 122.19 ▼19.14 | 183.02 ▼2.02 |
Add New /wp-admin/post-new.php?post_type=adsbenedict | 2,582 | 5.93 | 98.92 | 124.11 |
Ads /wp-admin/edit.php?post_type=adsbenedict | 1,491 | 3.31 | 60.37 | 109.07 |
Advertisers /wp-admin/edit-tags.php?taxonomy=advertisers&post_type=adsbenedict | 1,663 | 3.14 | 56.38 | 107.30 |
Zones /wp-admin/edit-tags.php?taxonomy=zone&post_type=adsbenedict | 1,667 | 3.14 | 58.00 | 101.46 |
Ad's Benedict Settings /wp-admin/edit.php?post_type=adsbenedict&page=absetting | 1,097 | 2.76 | 56.84 | 111.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ads-benedict/adsbenedict.php
- > /wp-content/plugins/ads-benedict/include/admin.php
- > /wp-content/plugins/ads-benedict/include/yourls.php
- > /wp-content/plugins/ads-benedict/post-types/adsbenedict.php
- > /wp-content/plugins/ads-benedict/taxonomies/zone.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-benedict/taxonomies/advertisers.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: ad network, banner ads, double click for publishers, easy ads
ads-benedict/adsbenedict.php 77% from 13 tests
The main file in "Ads Benedict" v. 0.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ads-benedict.php" instead of "adsbenedict.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin530 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 84 | 23 | 513 |
JavaScript | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected