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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.70 ▼4.16 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.32 ▼15.58 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.41 ▼6.84 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.21 ▼13.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.76 ▼1.96 |
Better OptimizeMember API /wp-admin/options-general.php?page=boa_admin_page | 3.18 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.23 ▼0.13 | 1.95 ▲0.42 | 39.97 ▼4.57 |
Dashboard /wp-admin | 2,197 ▲26 | 5.65 ▲0.07 | 87.05 ▼1.80 | 43.75 ▲0.70 |
Posts /wp-admin/edit.php | 2,102 ▼1 | 2.00 ▲0.01 | 36.55 ▼6.36 | 36.57 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.43 ▼0.12 | 621.60 ▼64.76 | 51.68 ▼6.43 |
Media Library /wp-admin/upload.php | 1,399 ▲5 | 4.20 ▼0.02 | 99.66 ▼9.68 | 43.04 ▼3.21 |
Better OptimizeMember API /wp-admin/options-general.php?page=boa_admin_page | 1,056 | 2.28 | 25.42 | 30.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 271 | 199 | 724 |
CSS | 1 | 6 | 1 | 34 |
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 code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Logo-Ram.png | 21.91KB | 8.29KB | ▼ 62.15% |
assets/screenshot-1.png | 125.07KB | 45.26KB | ▼ 63.82% |