Benchmarks
Plugin footprint 83% 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: ▼7.15ms] Passed 4 tests
This is a short check of server-side resources used by OBOP Premium
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.22 ▼0.58 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.45 ▼4.91 |
Posts /wp-admin/edit.php | 3.40 ▲0.03 | 51.09 ▼10.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.35 ▼13.09 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 37.32 ▲2.45 |
OBOP Premium /wp-admin/options-general.php?page=obop-premium | 3.23 | 30.94 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for OBOP Premium
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.30 ▼0.07 | 1.83 ▲0.15 | 43.79 ▲3.69 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▲0.01 | 93.67 ▲5.54 | 39.10 ▼2.51 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▼0.02 | 38.21 ▲0.51 | 35.66 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,382 ▼144 | 16.54 ▼7.01 | 525.93 ▼155.06 | 43.16 ▼9.48 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.18 ▼0.06 | 96.15 ▼3.58 | 44.03 ▲0.06 |
OBOP Premium /wp-admin/options-general.php?page=obop-premium | 794 | 2.06 | 24.47 | 27.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/obop-premium/settings.php:14
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== obop-premium ===
) - Screenshots: Add a description for screenshot #2 in obop-premium/assets to your readme.txt
- Contributors: Plugin contributors not specified
obop-premium/obop-premium.php Passed 13 tests
The main PHP file in "OBOP Premium" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
This plugins allow you to limit the access of some post to the OBOP users only
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected214 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 31 | 28 | 155 |
PO File | 1 | 4 | 4 | 33 |
JavaScript | 1 | 6 | 2 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
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 | 5.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 8 | |
▷ Static methods | 3 | 37.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/read-more-en.png | 3.83KB | 4.09KB | 0.00% |
img/icon.png | 1.28KB | 0.40KB | ▼ 68.32% |
img/read-more-fr.png | 3.68KB | 3.98KB | 0.00% |