68% better-om-api

Code Review | Better OM API

WordPress plugin Better OM API scored68%from 54 tests.

About plugin

  • Plugin page: better-om-api
  • Plugin version: 0.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2016
  • Latest release: Mar 29, 2023
  • Number of updates: 21
  • Update frequency: every 120.8 days
  • Top authors: rickonline_nl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,229 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.09ms] Passed 4 tests

Server-side resources used by Better OM API
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.70 ▼4.16
Dashboard /wp-admin3.32 ▼0.0347.32 ▼15.58
Posts /wp-admin/edit.php3.37 ▲0.0149.41 ▼6.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.21 ▼13.78
Media Library /wp-admin/upload.php3.24 ▲0.0137.76 ▼1.96
Better OptimizeMember API /wp-admin/options-general.php?page=boa_admin_page3.1833.35

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: 1 new table, 7 new options
New tables
wp_boa_log
New WordPress options
widget_recent-posts
widget_recent-comments
boa_version
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Better OM API
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.23 ▼0.131.95 ▲0.4239.97 ▼4.57
Dashboard /wp-admin2,197 ▲265.65 ▲0.0787.05 ▼1.8043.75 ▲0.70
Posts /wp-admin/edit.php2,102 ▼12.00 ▲0.0136.55 ▼6.3636.57 ▼1.66
Add New Post /wp-admin/post-new.php1,532 ▲623.43 ▼0.12621.60 ▼64.7651.68 ▼6.43
Media Library /wp-admin/upload.php1,399 ▲54.20 ▼0.0299.66 ▼9.6843.04 ▼3.21
Better OptimizeMember API /wp-admin/options-general.php?page=boa_admin_page1,0562.2825.4230.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Zombie tables were found after uninstall: 1 table
    • wp_boa_log
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • boa_version
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=boa_admin_page
    • > Warning in wp-content/plugins/better-om-api/better-om-api.php+297
    Use of undefined constant OPTIMIZEMEMBER_VERSION - assumed 'OPTIMIZEMEMBER_VERSION' (this will throw an Error in a future version of PHP)

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-om-api/better-om-api.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: api, autorespond, optimizemember

better-om-api/better-om-api.php Passed 13 tests

The main PHP script in "Better OM API" version 0.6.3 is automatically included on every request by WordPress
97 characters long description:
A better version of the OptimizeMember API, specially tailored for the Dutch service Autorespond.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin758 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1271199724
CSS16134

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/Logo-Ram.png21.91KB8.29KB▼ 62.15%
assets/screenshot-1.png125.07KB45.26KB▼ 63.82%