10% obop

Code Review | OBOP

WordPress plugin OBOP scored10%from 54 tests.

About plugin

  • Plugin page: obop
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 9, 2016
  • Latest release: Apr 13, 2016
  • Number of updates: 14
  • Update frequency: every 0.5 days
  • Top authors: obop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /493 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.374.66 ▼34.48
Dashboard /wp-admin2.12 ▼1.195.50 ▼39.65
Posts /wp-admin/edit.php2.12 ▼1.246.09 ▼42.48
Add New Post /wp-admin/post-new.php2.12 ▼3.777.04 ▼96.89
Media Library /wp-admin/upload.php2.12 ▼1.126.49 ▼30.54
OBOP /wp-admin/options-general.php?page=obop2.125.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.101.61 ▼0.4843.40 ▲1.53
Dashboard /wp-admin2,210 ▲194.81 ▼0.10106.92 ▲5.8939.42 ▼3.09
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0338.93 ▼2.8131.46 ▼6.15
Add New Post /wp-admin/post-new.php1,536 ▲1723.36 ▲0.40658.56 ▲70.7550.24 ▼10.65
Media Library /wp-admin/upload.php1,395 ▲44.15 ▼0.10101.84 ▼3.3443.28 ▼2.30
OBOP /wp-admin/options-general.php?page=obop1,5122.0424.1335.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

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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP33831224
PO File1101036

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 code0.30
Average class complexity15.50
▷ Minimum class complexity15.00
▷ Maximum class complexity16.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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