90% lh-dequeue-the-event-calendar

Code Review | LH Dequeue the Event Calendar

WordPress plugin LH Dequeue the Event Calendar scored90%from 54 tests.

About plugin

  • Plugin page: lh-dequeue-the-ev...
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2019
  • Latest release: Jun 6, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /529 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.34ms] Passed 4 tests

A check of server-side resources used by LH Dequeue the Event Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.35 ▼1.11
Dashboard /wp-admin3.32 ▲0.0250.61 ▼4.64
Posts /wp-admin/edit.php3.37 ▲0.0254.72 ▼1.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.52 ▼9.90
Media Library /wp-admin/upload.php3.24 ▲0.0241.83 ▼1.35

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

LH Dequeue the Event Calendar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.67 ▼0.1038.46 ▼4.05
Dashboard /wp-admin2,195 ▲185.68 ▲0.0490.78 ▼1.7041.96 ▼3.36
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0141.23 ▲5.2636.45 ▲0.40
Add New Post /wp-admin/post-new.php1,535 ▲618.36 ▼4.65650.28 ▲33.1161.24 ▲7.71
Media Library /wp-admin/upload.php1,400 ▲64.21 ▲0.0799.03 ▼12.9746.18 ▲3.23

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: the event calendar, speed, dequeue, scripts, styles

lh-dequeue-the-event-calendar/lh-dequeu-the-event-calendar.php 92% from 13 tests

This is the main PHP file of "LH Dequeue the Event Calendar" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lh-dequeue-the-event-calendar.php" instead of "lh-dequeu-the-event-calendar.php")

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
Success! There were no dangerous files found in this plugin76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1801476

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin