68% better-wlm-api

Code Review | Better WishList API

WordPress plugin Better WishList API scored68%from 54 tests.

About plugin

  • Plugin page: better-wlm-api
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Mar 29, 2023
  • Number of updates: 55
  • Update frequency: every 49.4 days
  • Top authors: rickonline_nl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /8,857 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.16ms] Passed 4 tests

Server-side resources used by Better WishList API
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1742.19 ▲5.06
Dashboard /wp-admin3.48 ▲0.1752.06 ▲0.43
Posts /wp-admin/edit.php3.59 ▲0.2351.59 ▲1.61
Add New Post /wp-admin/post-new.php6.06 ▲0.1789.59 ▼8.09
Media Library /wp-admin/upload.php3.40 ▲0.1738.54 ▲1.43
Better WishList API /wp-admin/options-general.php?page=bwa_admin_page3.3433.94

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: 1 new table, 7 new options
New tables
wp_bwa_log
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
bwa_version
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Better WishList API
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲814.17 ▼0.111.68 ▼0.4846.79 ▲4.29
Dashboard /wp-admin2,197 ▲205.52 ▼0.0988.09 ▼5.9840.54 ▼4.75
Posts /wp-admin/edit.php2,105 ▲22.00 ▲0.0235.33 ▼2.2731.90 ▼12.53
Add New Post /wp-admin/post-new.php1,530 ▲423.07 ▼0.19685.46 ▲72.9451.96 ▼15.87
Media Library /wp-admin/upload.php1,402 ▲54.21 ▼0.1399.76 ▼3.9343.19 ▲1.66
Better WishList API /wp-admin/options-general.php?page=bwa_admin_page1,0882.1329.0029.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_bwa_log
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • bwa_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=bwa_admin_page
    • > Notice in wp-content/plugins/better-wlm-api/better-wlm-api.php+414
    Undefined variable: wlm_is_active

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-wlm-api/better-wlm-api.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: autorespond, wishlist member, api

better-wlm-api/better-wlm-api.php 92% from 13 tests

The main PHP file in "Better WishList API" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 242 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,198 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12931681,117
CSS115181

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.21MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png35.98KB13.23KB▼ 63.22%
assets/screenshot-1.png92.83KB37.04KB▼ 60.10%
img/ram_200x160.png7.66KB7.56KB▼ 1.35%
assets/screenshot-2.PNG79.13KB30.91KB▼ 60.93%