84% real-time-order-notify

Code Review | Real-time Order Notify

WordPress plugin Real-time Order Notify scored84%from 54 tests.

About plugin

  • Plugin page: real-time-order-n...
  • Plugin version: 8.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 26, 2023
  • Latest release: Apr 8, 2023
  • Number of updates: 6
  • Update frequency: every 12.0 days
  • Top authors: arberotum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /187 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.58ms] Passed 4 tests

A check of server-side resources used by Real-time Order Notify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.56 ▼2.30
Dashboard /wp-admin3.34 ▲0.0449.17 ▼4.74
Posts /wp-admin/edit.php3.39 ▲0.0452.18 ▲4.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.20 ▼15.01
Media Library /wp-admin/upload.php3.26 ▲0.0436.88 ▼0.28

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Real-time Order Notify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲13613.60 ▼0.6510.71 ▲8.8292.09 ▲48.96
Dashboard /wp-admin2,203 ▲325.58 ▲0.0797.28 ▲9.5877.80 ▲34.27
Posts /wp-admin/edit.php2,117 ▲171.99 ▲0.0033.36 ▼2.5530.87 ▼5.37
Add New Post /wp-admin/post-new.php1,536 ▲823.77 ▲0.82656.32 ▼55.44144.27 ▲89.01
Media Library /wp-admin/upload.php1,408 ▲84.17 ▼0.0196.74 ▼20.8372.90 ▲11.59

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-time-order-notify/index.php:15

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 93% from 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
No plugin tags provided

real-time-order-notify/index.php 85% from 13 tests

This is the main PHP file of "Real-time Order Notify" version 8.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("real-time-order-notify.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 209 characters long)

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
There were no executable files found in this plugin241 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript57495234
CSS5065
PHP2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png28.21KB0.89KB▼ 96.84%
assets/images/logo.png82.83KB9.58KB▼ 88.43%