Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/adblock-invite/widget.php+54
Methods with the same name as their class will not be constructors in a future version of PHP; adblockInviteWidget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼57.83ms] Passed 4 tests
Analyzing server-side resources used by Adblock invite (Yes adblock)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.32 ▼34.39 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.51 ▼51.12 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.99 ▼43.03 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 4.87 ▼101.50 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 11.12 ▼35.65 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_adblock_invite_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Adblock invite (Yes adblock)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 14.41 ▲0.34 | 2.59 ▲0.79 | 43.82 ▼2.96 |
Dashboard /wp-admin | 2,203 ▲15 | 5.85 ▲0.97 | 118.83 ▲11.42 | 41.56 ▼6.89 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.03 | 39.69 ▲1.79 | 35.05 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 23.21 ▼0.01 | 665.46 ▲0.99 | 60.17 ▼0.62 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▼0.02 | 121.52 ▲17.84 | 44.37 ▼0.58 |
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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/adblock-invite/widget.php+54
Methods with the same name as their class will not be constructors in a future version of PHP; adblockInviteWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_adblock_invite_widget
- widget_recent-posts
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 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/adblock-invite/widget.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: adblock, widget, blocked, ads
adblock-invite/widget.php 92% from 13 tests
The entry point to "Adblock invite (Yes adblock)" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("adblock-invite.php" instead of "widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin73 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 16 | 69 |
CSS | 1 | 1 | 0 | 3 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 18.67KB | 7.80KB | ▼ 58.19% |
screenshot-2.png | 20.40KB | 8.79KB | ▼ 56.90% |