Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.99ms] Passed 4 tests
A check of server-side resources used by Website Monetization by AdSwallow
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 47.34 ▲6.64 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.32 ▼3.06 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.25 ▼1.91 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 97.00 ▲7.96 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.63 ▲2.27 |
Website Monetization by AdSwallow /wp-admin/options-general.php?page=adsw_ad_group | 3.24 | 33.19 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Website Monetization by AdSwallow
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,783 ▲22 | 14.27 ▼0.08 | 1.62 ▼0.30 | 37.59 ▼6.16 |
Dashboard /wp-admin | 2,202 ▲22 | 5.61 ▼0.06 | 86.68 ▼8.96 | 37.17 ▼5.27 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.01 ▲0.05 | 39.79 ▲1.96 | 36.49 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.53 ▲0.49 | 696.65 ▲2.66 | 63.00 ▼1.40 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▼0.00 | 103.31 ▲1.46 | 49.17 ▲0.22 |
Website Monetization by AdSwallow /wp-admin/options-general.php?page=adsw_ad_group | 977 | 1.85 | 29.09 | 28.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 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/website-monetization-by-adswallow/adsw.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
website-monetization-by-adswallow/adsw.php 85% from 13 tests
The main file in "Website Monetization by AdSwallow" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 497 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("website-monetization-by-adswallow.php" instead of "adsw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,399 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 34 | 53 | 1,204 |
PHP | 1 | 31 | 8 | 185 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 50.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/resources/inspace.png | 15.30KB | 5.72KB | ▼ 62.61% |
img/resources/whitespace.png | 30.36KB | 9.86KB | ▼ 67.52% |