Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/obop/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; obop_widget has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼53.38ms] Passed 4 tests
An overview of server-side resources used by OBOP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 4.66 ▼34.48 |
Dashboard /wp-admin | 2.12 ▼1.19 | 5.50 ▼39.65 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.09 ▼42.48 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 7.04 ▼96.89 |
Media Library /wp-admin/upload.php | 2.12 ▼1.12 | 6.49 ▼30.54 |
OBOP /wp-admin/options-general.php?page=obop | 2.12 | 5.89 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_obop_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for OBOP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.10 | 1.61 ▼0.48 | 43.40 ▲1.53 |
Dashboard /wp-admin | 2,210 ▲19 | 4.81 ▼0.10 | 106.92 ▲5.89 | 39.42 ▼3.09 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.03 | 38.93 ▼2.81 | 31.46 ▼6.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.36 ▲0.40 | 658.56 ▲70.75 | 50.24 ▼10.65 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.15 ▼0.10 | 101.84 ▼3.34 | 43.28 ▼2.30 |
OBOP /wp-admin/options-general.php?page=obop | 1,512 | 2.04 | 24.13 | 35.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/obop/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; obop_widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_obop_widget
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=obop
- > Deprecated in wp-content/plugins/obop/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; obop_widget has a deprecated constructor
- 40 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=obop
- > Notice in wp-content/plugins/obop/settings.php+153
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/obop/widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/obop/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
These attributes need your attention:
- Contributors: The plugin contributors field is not present
- Screenshots: Add descriptions for screenshots #2, #4 in obop/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== obop ===
)
obop/obop.php Passed 13 tests
The primary PHP file in "OBOP" version 0.3 is used by WordPress to initiate all plugin functionality
44 characters long description:
This is the plugins to use OBOP on your blog
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected260 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 31 | 224 |
PO File | 1 | 10 | 10 | 36 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin