Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.62ms] Passed 4 tests
Server-side resources used by Ads Benedict
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.98 ▼12.02 |
Dashboard /wp-admin | 3.36 ▲0.05 | 52.92 ▼5.43 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.15 ▼3.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 91.02 ▼21.92 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.73 ▲2.87 |
Advertisers /wp-admin/edit-tags.php?taxonomy=advertisers&post_type=adsbenedict | 3.37 | 39.99 |
Ads /wp-admin/edit.php?post_type=adsbenedict | 3.33 | 37.90 |
Zones /wp-admin/edit-tags.php?taxonomy=zone&post_type=adsbenedict | 3.28 | 35.03 |
Add New /wp-admin/post-new.php?post_type=adsbenedict | 3.43 | 51.53 |
Ad's Benedict Settings /wp-admin/edit.php?post_type=adsbenedict&page=absetting | 3.25 | 42.33 |
Server storage [IO: ▲0.03MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ads Benedict
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 14.05 ▼0.31 | 12.43 ▲10.30 | 42.84 ▼1.10 |
Dashboard /wp-admin | 2,260 ▲80 | 5.66 ▼0.01 | 89.96 ▼2.62 | 38.84 ▲0.60 |
Posts /wp-admin/edit.php | 2,165 ▲65 | 2.06 ▲0.04 | 34.69 ▼3.47 | 34.42 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 22.79 ▼0.28 | 667.93 ▲25.58 | 35.93 ▼20.84 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.35 ▲0.18 | 97.99 ▼14.42 | 44.14 ▼5.19 |
Advertisers /wp-admin/edit-tags.php?taxonomy=advertisers&post_type=adsbenedict | 1,311 | 1.88 | 28.71 | 33.72 |
Ads /wp-admin/edit.php?post_type=adsbenedict | 1,158 | 2.02 | 38.62 | 30.11 |
Zones /wp-admin/edit-tags.php?taxonomy=zone&post_type=adsbenedict | 1,311 | 1.85 | 26.65 | 30.43 |
Add New /wp-admin/post-new.php?post_type=adsbenedict | 1,959 | 4.01 | 69.76 | 29.00 |
Ad's Benedict Settings /wp-admin/edit.php?post_type=adsbenedict&page=absetting | 882 | 1.86 | 25.08 | 26.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/ads-benedict/adsbenedict.php
- > /wp-content/plugins/ads-benedict/taxonomies/zone.php
- > /wp-content/plugins/ads-benedict/include/yourls.php
- > /wp-content/plugins/ads-benedict/include/admin.php
- > /wp-content/plugins/ads-benedict/post-types/adsbenedict.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 a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
4 plugin tags: ad network, banner ads, easy ads, double click for publishers
ads-benedict/adsbenedict.php 77% from 13 tests
The main PHP script in "Ads Benedict" version 0.3.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- 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 folder does not exist ("/languages")
- Main file name: Name the main plugin file 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 | There should be no dangerous file extensions present in 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
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin