Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/block-ads-to-bitcoin/settings.php+223
Undefined index: a2b_wpnonce
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.58ms] Passed 4 tests
Analyzing server-side resources used by Block Ads to Bitcoin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.01 | 25.51 ▼17.90 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.94 ▼0.71 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.91 ▼4.87 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.92 ▼10.83 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.47 ▲2.41 |
Block Ads to Bitcoin /wp-admin/options-general.php?page=a2b-setting-admin | 3.22 | 33.77 |
Server storage [IO: ▲3.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Block Ads to Bitcoin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,022 ▲261 | 14.64 ▲0.46 | 20.58 ▲18.95 | 44.16 ▲3.33 |
Dashboard /wp-admin | 2,228 ▲22 | 4.85 ▼1.05 | 105.38 ▲3.28 | 37.03 ▼6.93 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.00 ▼0.01 | 35.89 ▼4.95 | 34.48 ▼0.54 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 22.74 ▼0.48 | 662.39 ▲9.30 | 55.48 ▼5.91 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.00 | 106.02 ▼7.01 | 44.81 ▼3.27 |
Block Ads to Bitcoin /wp-admin/options-general.php?page=a2b-setting-admin | 847 | 2.05 | 22.20 | 29.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=a2b-setting-admin
- > Notice in wp-content/plugins/block-ads-to-bitcoin/helpers.php+15
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/block-ads-to-bitcoin/adblock-to-bitcoin.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/block-ads-to-bitcoin/settings.php:219
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #4 in block-ads-to-bitcoin/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== block-ads-to-bitcoin ===
)
block-ads-to-bitcoin/adblock-to-bitcoin.php 85% from 13 tests
The primary PHP file in "Block Ads to Bitcoin" version 0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("block-ads-to-bitcoin.php" instead of "adblock-to-bitcoin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected10,264 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,858 | 1,955 | 7,617 |
CSS | 2 | 14 | 17 | 1,415 |
SVG | 1 | 0 | 0 | 655 |
PHP | 3 | 63 | 54 | 295 |
HTML | 1 | 38 | 7 | 220 |
JSON | 1 | 7 | 0 | 35 |
Markdown | 1 | 14 | 0 | 27 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 2.53MB with 1.89MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 1,204.63KB | 312.95KB | ▼ 74.02% |
screenshot-1.png | 331.28KB | 74.38KB | ▼ 77.55% |
screenshot-4.png | 171.03KB | 49.37KB | ▼ 71.13% |
screenshot-2.png | 884.31KB | 212.47KB | ▼ 75.97% |