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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.85ms] Passed 4 tests
This is a short check of server-side resources used by AutoAds Premiere
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.08 ▼5.32 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.16 ▼3.82 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.03 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.68 ▼3.96 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.20 ▲5.56 |
AutoAds Premiere /wp-admin/options-general.php?page=autoads_premiere | 3.21 | 31.38 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
autoads_premiere_plugin_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AutoAds Premiere
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.08 | 1.58 ▼0.28 | 37.20 ▼14.57 |
Dashboard /wp-admin | 2,210 ▲19 | 5.88 ▼0.03 | 111.05 ▼4.47 | 41.55 ▼3.43 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 40.28 ▲4.52 | 35.37 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.31 ▲0.16 | 678.81 ▲15.74 | 65.27 ▲5.17 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.21 ▼0.03 | 108.82 ▲9.36 | 47.79 ▲3.17 |
AutoAds Premiere /wp-admin/options-general.php?page=autoads_premiere | 899 | 2.02 | 26.71 | 25.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- autoads_premiere_plugin_version
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=autoads_premiere
- > Notice in wp-content/plugins/autoads-premiere/autoads-premiere.php+272
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: ad-solutions, google adsense, advertisements, adsense, adverts
autoads-premiere/autoads-premiere.php Passed 13 tests
Analyzing the main PHP file in "AutoAds Premiere" version 1.2.1
89 characters long description:
This plugin allows you to quickly add AutoAds to your website. Install, Activate, Profit!
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 plugin280 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 78 | 127 | 280 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-772x250.png | 32.11KB | 12.70KB | ▼ 60.47% |