84% wishlist-auto-protect

Code Review | Wishlist Member AutoProtect

WordPress plugin Wishlist Member AutoProtect scored84%from 54 tests.

About plugin

  • Plugin page: wishlist-auto-pro...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Oct 17, 2013
  • Latest release: Apr 2, 2015
  • Number of updates: 19
  • Update frequency: every 28.0 days
  • Top authors: happyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.47ms] Passed 4 tests

A check of server-side resources used by Wishlist Member AutoProtect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.79 ▼3.64
Dashboard /wp-admin3.37 ▲0.0745.26 ▼5.42
Posts /wp-admin/edit.php3.43 ▲0.0744.50 ▼4.59
Add New Post /wp-admin/post-new.php5.96 ▲0.0780.81 ▼8.22
Media Library /wp-admin/upload.php3.30 ▲0.0736.48 ▲1.95

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Wishlist Member AutoProtect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.72 ▲0.371.88 ▼0.0343.79 ▼0.41
Dashboard /wp-admin2,200 ▲205.55 ▼0.0584.56 ▼13.3938.75 ▼4.10
Posts /wp-admin/edit.php2,114 ▲112.00 ▲0.0435.63 ▼3.4638.18 ▲1.04
Add New Post /wp-admin/post-new.php1,375 ▼15117.40 ▼6.10571.78 ▼121.7337.76 ▼24.49
Media Library /wp-admin/upload.php1,408 ▲54.22 ▼0.0694.81 ▼8.5044.49 ▼0.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-auto-protect/wishlist-autoprotect.php:666

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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: wishlist member, automatic protection, membership

wishlist-auto-protect/wishlist-autoprotect.php 92% from 13 tests

The main PHP file in "Wishlist Member AutoProtect" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wishlist-auto-protect.php" instead of "wishlist-autoprotect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,683 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43057523,659
PHP2337177540
CSS2102247484

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected