90% lxb-staging-reminder

Code Review | LXB Staging Reminder

WordPress plugin LXB Staging Reminder scored90%from 54 tests.

About plugin

  • Plugin page: lxb-staging-reminder
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Nov 3, 2017
  • Latest release: Nov 4, 2017
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: scofennell@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /610 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by LXB Staging Reminder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.36 ▼1.11
Dashboard /wp-admin3.31 ▼0.0448.45 ▼16.10
Posts /wp-admin/edit.php3.36 ▲0.0049.51 ▼4.78
Add New Post /wp-admin/post-new.php5.89 ▲0.00101.13 ▼2.16
Media Library /wp-admin/upload.php3.23 ▲0.0037.43 ▲1.52

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LXB Staging Reminder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.14 ▼1.011.85 ▼0.0241.39 ▼1.80
Dashboard /wp-admin2,224 ▲245.85 ▲1.00100.83 ▼10.8842.11 ▼0.33
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0136.65 ▼0.4537.88 ▲5.34
Add New Post /wp-admin/post-new.php1,532 ▼1323.46 ▲0.11640.41 ▼43.9358.09 ▲5.85
Media Library /wp-admin/upload.php1,397 ▼34.26 ▲0.0796.40 ▼24.0940.24 ▼7.98

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
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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
2 plugin tags: wp-engine, staging

lxb-staging-reminder/plugin.php 92% from 13 tests

"LXB Staging Reminder" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("lxb-staging-reminder.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin104 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5648679
JavaScript1142816
CSS11109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin