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
Install script ran successfully
Server metrics [RAM: ▼0.91MB] [CPU: ▼35.94ms] Passed 4 tests
A check of server-side resources used by Ad Itt
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.20 ▼6.90 |
Dashboard /wp-admin | 3.04 ▼0.27 | 24.87 ▼28.82 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 23.90 ▼21.61 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 24.63 ▼78.08 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 21.72 ▼15.25 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 25 new options
New WordPress options |
---|
widget_recent-posts |
top_ad_img |
widget_theysaidso_widget |
bottom_ad_position |
enable_top_ad_link |
css_content_wrapper_selector |
db_upgraded |
right_ad_link |
left_ad_link |
bottom_ad_img |
... |
Browser metrics Passed 4 tests
Ad Itt: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.98 ▼0.31 | 6.17 ▲4.45 | 40.32 ▼2.98 |
Dashboard /wp-admin | 2,240 ▲49 | 5.90 ▼0.00 | 105.43 ▼11.29 | 42.60 ▼3.00 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.03 ▲0.03 | 42.89 ▲6.96 | 37.19 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,572 ▲58 | 18.57 ▲1.08 | 610.58 ▼58.48 | 55.80 ▼2.17 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.25 ▲0.00 | 97.80 ▲1.14 | 43.51 ▼0.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/ad-itt/ad-itt.php+30
Undefined index: filter_image_name
- This plugin does not fully uninstall, leaving 25 options in the database
- top_ad_img
- enable_bottom_ad_link
- theysaidso_admin_options
- right_ad_position
- css_content_wrapper_selector
- widget_recent-comments
- right_ad_img
- top_ad_link
- bottom_ad_position
- right_ad_link
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Invalid URI found ("")
ad-itt/ad-itt.php Passed 13 tests
The main PHP file in "Ad Itt" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
Adds advertisements to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,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
A brief analysis of cyclomatic complexity and code structure for this plugin
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin