83% wakker-media-newsletter-checkout-checkbox

Code Review | Wakker Media Newsletter Checkout Checkbox

WordPress plugin Wakker Media Newsletter Checkout Checkbox scored 83% from 54 tests.

About plugin

  • Plugin page: wakker-media-news...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2014
  • Latest release: Mar 14, 2014
  • Number of updates: 6
  • Update frequency: every 5.8 days
  • Top authors: WakkerMedia (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,464 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.15ms] Passed 4 tests

Analyzing server-side resources used by Wakker Media Newsletter Checkout Checkbox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.14 ▼9.44
Dashboard /wp-admin3.32 ▲0.0146.55 ▼6.76
Posts /wp-admin/edit.php3.37 ▲0.0144.21 ▼4.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.73 ▼4.31
Media Library /wp-admin/upload.php3.24 ▲0.0136.44 ▲0.49

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Wakker Media Newsletter Checkout Checkbox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.29 ▼0.951.85 ▼0.3541.13 ▼1.29
Dashboard /wp-admin2,206 ▲154.87 ▼0.98108.17 ▲4.1738.64 ▼3.72
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0334.21 ▼6.0132.66 ▼5.44
Add New Post /wp-admin/post-new.php1,533 ▼523.26 ▲0.17678.57 ▲79.9661.62 ▲10.98
Media Library /wp-admin/upload.php1,385 ▲34.18 ▲0.0195.65 ▼1.4344.27 ▼0.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
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/wakker-media-newsletter-checkout-checkbox/wakkermedia-newsletter-checkout-checkbox.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === wakker-media-newsletter-checkout-checkbox === )
You can take inspiration from this readme.txt

wakker-media-newsletter-checkout-checkbox/wakkermedia-newsletter-checkout-checkbox.php 85% from 13 tests

Analyzing the main PHP file in "Wakker Media Newsletter Checkout Checkbox" version 1.1
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wakker-media-newsletter-checkout-checkbox.php" instead of "wakkermedia-newsletter-checkout-checkbox.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 311 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131529

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions2
▷ Named functions2100.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 images were found in this plugin