84% schedule-revisions

Code Review | Schedule Revisions

WordPress plugin Schedule Revisions scored 84% from 54 tests.

About plugin

  • Plugin page: schedule-revisions
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.4.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2020
  • Latest release: Jul 23, 2020
  • Number of updates: 4
  • Update frequency: every 65.3 days
  • Top authors: torres126 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 870 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
This plugin's installer ran successfully

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

Server-side resources used by Schedule Revisions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.72 ▼1.20
Dashboard /wp-admin3.32 ▲0.0145.48 ▼6.37
Posts /wp-admin/edit.php3.37 ▲0.0150.03 ▲9.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.80 ▼5.11
Media Library /wp-admin/upload.php3.24 ▲0.0139.49 ▲2.42

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Schedule Revisions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼1.051.74 ▲0.0543.34 ▲0.32
Dashboard /wp-admin2,203 ▲124.87 ▲0.0194.74 ▼6.2237.78 ▼10.15
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0339.25 ▼0.5035.50 ▲1.87
Add New Post /wp-admin/post-new.php6,585 ▲5,06629.35 ▲5.86879.19 ▲275.7455.86 ▲5.41
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0295.08 ▼3.8444.16 ▲1.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/schedule-revisions/schedule-revisions-block.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt might help

schedule-revisions/schedule-revisions-block.php 92% from 13 tests

This is the main PHP file of "Schedule Revisions" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("schedule-revisions.php" instead of "schedule-revisions-block.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
Everything looks great! No dangerous files found in this plugin209 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41815127
PHP251241
Sass17026
JSON10014
CSS1101

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin