84% schedule-terms

Code Review | Schedule Terms

WordPress plugin Schedule Terms scored84%from 54 tests.

About plugin

  • Plugin page: schedule-terms
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0
  • WordPress version: 6.3.1
  • First release: May 19, 2022
  • Latest release: Oct 26, 2022
  • Number of updates: 13
  • Update frequency: every 12.4 days
  • Top authors: hamworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,216 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.90ms] Passed 4 tests

Server-side resources used by Schedule Terms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1135.07 ▼18.91
Dashboard /wp-admin3.41 ▲0.1046.30 ▼1.94
Posts /wp-admin/edit.php3.46 ▲0.1045.84 ▲0.22
Add New Post /wp-admin/post-new.php6.00 ▲0.1182.88 ▼1.77
Media Library /wp-admin/upload.php3.33 ▲0.1032.04 ▼0.98

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Schedule Terms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.80 ▲0.421.68 ▼0.2838.01 ▼6.55
Dashboard /wp-admin2,200 ▲185.78 ▲0.89101.25 ▼17.3440.12 ▼8.25
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0438.60 ▲1.5533.26 ▼1.49
Add New Post /wp-admin/post-new.php1,537 ▲318.37 ▼4.75703.51 ▲24.0857.69 ▲1.45
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.1097.01 ▼1.9743.04 ▼3.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'HAMWORKS\\WP\\Schedule_Terms\\Term\\UI' not found in wp-content/plugins/schedule-terms/includes/Term_UI.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HAMWORKS\\WP\\Schedule_Terms\\add_action() in wp-content/plugins/schedule-terms/includes/Assets.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: schedule, term

schedule-terms/schedule-terms.php 92% from 13 tests

"Schedule Terms" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
There were no executable files found in this plugin1,473 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP213068451,097
TypeScript32414279
JSON20038
Bourne Shell28032
XML14225
JavaScript2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods87
▷ Static methods1820.69%
▷ Public methods7485.06%
▷ Protected methods66.90%
▷ Private methods78.05%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.26MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/screenshot-3.png78.50KB22.41KB▼ 71.45%
.wordpress-org/screenshot-2.png70.65KB21.19KB▼ 70.01%
.wordpress-org/screenshot-1.png120.56KB30.11KB▼ 75.02%