88% lift-trail-status

Code Review | Lift & Trail Status

WordPress plugin Lift & Trail Status scored88%from 54 tests.

About plugin

  • Plugin page: lift-trail-status
  • Plugin version: 1.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: May 21, 2020
  • Latest release: Apr 13, 2023
  • Number of updates: 11
  • Update frequency: every 96.7 days
  • Top authors: medic52wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /639 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.17MB] [CPU: ▲0.54ms] Passed 4 tests

An overview of server-side resources used by Lift & Trail Status
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.81 ▲4.48
Dashboard /wp-admin3.47 ▲0.1750.20 ▲5.63
Posts /wp-admin/edit.php3.59 ▲0.2348.54 ▼1.31
Add New Post /wp-admin/post-new.php6.07 ▲0.1989.66 ▼2.64
Media Library /wp-admin/upload.php3.40 ▲0.1736.32 ▲1.63
Medic52 Lift & Trail Status /wp-admin/options-general.php?page=medic52_wpstatus3.3937.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Lift & Trail Status
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16213.97 ▼0.399.67 ▲7.7642.38 ▲1.19
Dashboard /wp-admin2,229 ▲535.86 ▲0.00113.43 ▲11.9942.91 ▲0.38
Posts /wp-admin/edit.php2,091 ▼12.06 ▼0.0035.18 ▼5.7832.89 ▼2.63
Add New Post /wp-admin/post-new.php1,546 ▲1318.23 ▼4.90624.30 ▼65.0652.04 ▼2.71
Media Library /wp-admin/upload.php1,411 ▲234.28 ▲0.0899.47 ▼16.1843.76 ▼3.57
Medic52 Lift & Trail Status /wp-admin/options-general.php?page=medic52_wpstatus1,8114.2874.0334.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: There are too many tags (17 tag instead of maximum 10)
  • Screenshots: Please a description for screenshot #4 in lift-trail-status/assets to your readme.txt
  • Screenshots: Screenshot #5 (Trails display groomed status, and snowmaking along side the the difficulty icons) image not found
The official readme.txt is a good inspiration

lift-trail-status/medic52-wpstatus.php 77% from 13 tests

The principal PHP file in "Lift & Trail Status" v. 1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 191 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("lift-trail-status.php" instead of "medic52-wpstatus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,966 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
SVG1001,303
PHP7126303866
CSS278685
JavaScript2722112

PHP code Passed 2 tests

This is a short overview 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.44
Average class complexity19.17
▷ Minimum class complexity4.00
▷ Maximum class complexity56.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods34
▷ Static methods1544.12%
▷ Public methods2882.35%
▷ Protected methods00.00%
▷ Private methods617.65%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants13
▷ Global constants1184.62%
▷ Class constants215.38%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon_map.png2.34KB0.94KB▼ 59.91%
assets/img/icon_triplechair.png2.63KB1.05KB▼ 60.04%