Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.93MB] [CPU: ▼311.92ms] Passed 4 tests
Server-side resources used by Ad Itt
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.31 | 53.54 ▲2.57 |
Dashboard /wp-admin | 3.39 ▼0.01 | 29.31 ▼3.24 |
Posts /wp-admin/edit.php | 3.41 ▼0.23 | 60.33 ▲23.32 |
Add New Post /wp-admin/post-new.php | 3.40 ▼3.57 | 18.97 ▼1,240.03 |
Media Library /wp-admin/upload.php | 3.40 ▲0.10 | 17.90 ▼6.98 |
Server storage [IO: ▲0.11MB] [DB: ▼0.03MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 19 new options
New WordPress options |
---|
enable_top_ad_link |
top_ad_link |
right_ad_position |
bottom_ad_position |
enable_right_ad_link |
left_ad_link |
bottom_ad_img |
top_ad_close_img |
enable_left_ad_link |
right_ad_link |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Ad Itt
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,947 ▲225 | 16.02 ▲0.37 | 10.32 ▲4.11 | 2.68 ▲0.31 |
Dashboard /wp-admin | 2,941 ▲87 | 6.14 ▲0.02 | 119.01 ▼15.93 | 156.02 ▼1.98 |
Posts /wp-admin/edit.php | 2,737 ▲43 | 3.25 ▲0.01 | 71.77 ▲10.26 | 146.53 ▲2.91 |
Add New Post /wp-admin/post-new.php | 1,691 ▼82 | 16.27 ▼5.88 | 414.36 ▼31.72 | 157.00 ▼0.03 |
Media Library /wp-admin/upload.php | 1,744 ▲46 | 5.53 ▲0.03 | 135.78 ▼5.83 | 184.34 ▼2.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▼0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/ad-itt/ad-itt.php+30
Undefined index: filter_image_name
- This plugin does not fully uninstall, leaving 19 options in the database
- top_ad_img
- left_ad_position
- top_ad_link
- css_content_wrapper_selector
- enable_left_ad_link
- right_ad_link
- bottom_ad_position
- bottom_ad_img
- enable_top_ad_link
- top_ad_close_img
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Please take a closer look at the following
- 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/ad-itt/ad-itt.php:28
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
ad-itt/ad-itt.php Passed 13 tests
The main PHP script in "Ad Itt" version 2.0 is automatically included on every request by WordPress
36 characters long description:
Adds advertisements to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,297 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 184 | 108 | 1,412 |
JavaScript | 2 | 113 | 220 | 855 |
CSS | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 207.00 |
▷ Minimum class complexity | 207.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 6.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected