Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.76ms] Passed 4 tests
Analyzing server-side resources used by WPAds
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.46 ▼7.88 |
Dashboard /wp-admin | 3.35 ▼0.00 | 53.84 ▼10.87 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.44 ▼0.99 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.07 ▲7.38 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.08 ▼3.31 |
WPAds /wp-admin/options-general.php?page=wpads_menu_page | 3.33 | 36.76 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ads_banners |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
wpads_version |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPAds
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.67 ▼0.92 | 1.54 ▼0.36 | 37.34 ▼10.22 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▼0.15 | 108.10 ▼6.98 | 39.73 ▼3.75 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 1.99 ▼0.02 | 38.83 ▲2.91 | 34.84 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,545 ▲7 | 18.00 ▼5.09 | 595.43 ▼116.85 | 58.31 ▲6.24 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.01 | 96.85 ▼13.03 | 42.25 ▲0.02 |
WPAds /wp-admin/options-general.php?page=wpads_menu_page | 832 | 2.03 | 25.31 | 30.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ads_banners
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- wpads_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: adverts, rotation, ad manager, banner, ads
wpads/wpads.php Passed 13 tests
The main PHP script in "WPAds" version 0.3.1 is automatically included on every request by WordPress
27 characters long description:
Ad management for WordPress
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
Success! There were no dangerous files found in this plugin542 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 63 | 85 | 542 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 7 | 38.89% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
thomas.png | 18.28KB | 6.52KB | ▼ 64.31% |