84% schedule-tags

Code Review | Schedule Tags

WordPress plugin Schedule Tags scored84%from 54 tests.

About plugin

  • Plugin page: schedule-tags
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2019
  • Latest release: Jun 4, 2020
  • Number of updates: 5
  • Update frequency: every 84.2 days
  • Top authors: zetamatic (80%)pitabas106 (40%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /881 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.07MB] [CPU: ▼2.11ms] Passed 4 tests

An overview of server-side resources used by Schedule Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.42 ▲4.22
Dashboard /wp-admin3.38 ▲0.0348.74 ▼8.90
Posts /wp-admin/edit.php3.49 ▲0.1348.39 ▲1.79
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.64 ▲0.12
Media Library /wp-admin/upload.php3.30 ▲0.0732.28 ▼1.44
Schedule Tags /wp-admin/options-general.php?page=wpts-options3.2729.57

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

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

Browser metrics Passed 4 tests

Schedule Tags: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.30 ▼1.381.65 ▲0.0843.50 ▲0.21
Dashboard /wp-admin2,225 ▲364.96 ▲0.04110.60 ▲5.2642.56 ▼0.32
Posts /wp-admin/edit.php2,111 ▲192.35 ▲0.3039.53 ▼1.7438.94 ▲1.98
Add New Post /wp-admin/post-new.php6,263 ▲4,72126.30 ▲7.62825.82 ▲192.5564.38 ▲18.44
Media Library /wp-admin/upload.php1,407 ▲164.46 ▲0.2694.45 ▼6.0341.32 ▼1.78
Schedule Tags /wp-admin/options-general.php?page=wpts-options8342.2027.3325.45

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/schedule-tags/schedule-tags.php:14

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: dynamic tags, schedule tags, tags, future tags, custom tags...

schedule-tags/schedule-tags.php Passed 13 tests

The principal PHP file in "Schedule Tags" v. 1.1 is loaded by WordPress automatically on each request
96 characters long description:
This plugin allows you to schedule tags automatically according to the date defined for the tag.

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
Success! There were no dangerous files found in this plugin375 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP356138277
JavaScript114298

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin