79% wprightontime

Code Review | WpRightOnTime

WordPress plugin WpRightOnTime scored79%from 54 tests.

About plugin

  • Plugin page: wprightontime
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.0
  • WordPress version: 6.3.1
  • First release: May 22, 2017
  • Latest release: Dec 23, 2018
  • Number of updates: 15
  • Update frequency: every 38.9 days
  • Top authors: telmoteixeira (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /817 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
Installer ran successfully

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

This is a short check of server-side resources used by WpRightOnTime
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.44 ▼2.85
Dashboard /wp-admin3.45 ▲0.1049.67 ▼6.84
Posts /wp-admin/edit.php3.56 ▲0.2044.38 ▼1.22
Add New Post /wp-admin/post-new.php6.05 ▲0.1680.96 ▼12.67
Media Library /wp-admin/upload.php3.37 ▲0.1438.52 ▲5.41
WpRightOnTime /wp-admin/options-general.php?page=wprightontime3.3439.36

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WpRightOnTime
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.17 ▼0.181.90 ▲0.3342.65 ▲0.34
Dashboard /wp-admin2,204 ▲275.67 ▼0.0293.25 ▲7.5644.71 ▲5.87
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0235.06 ▲1.1735.20 ▼2.24
Add New Post /wp-admin/post-new.php1,537 ▼023.24 ▲4.96657.48 ▲9.1855.48 ▼28.09
Media Library /wp-admin/upload.php1,409 ▲124.21 ▲0.0197.23 ▼4.3640.40 ▼6.14
WpRightOnTime /wp-admin/options-general.php?page=wprightontime7881.6825.6126.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 18× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wprightontime/Wprightontime/Process/CallFormProcess.php
    • > /wp-content/plugins/wprightontime/Wprightontime/Table/JobTable.php
    • > /wp-content/plugins/wprightontime/Wprightontime/Wprightontime.php
    • > /wp-content/plugins/wprightontime/Wprightontime/Views/calls.php
    • > /wp-content/plugins/wprightontime/Wprightontime/Http/WprotHttp.php
    • > /wp-content/plugins/wprightontime/Wprightontime/Settings/Settings.php
    • > /wp-content/plugins/wprightontime/Wprightontime/Admin/Admin.php
    • > /wp-content/plugins/wprightontime/Wprightontime/Views/settings.php
    • > /wp-content/plugins/wprightontime/Wprightontime/Table/ReportTable.php
    • > /wp-content/plugins/wprightontime/Wprightontime/Table/ScheduleTable.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wprightontime/Wprightontime/Views/no-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: wprightontime, wp cron, webcron, cron, scheduler

wprightontime/wprightontime.php Passed 13 tests

Analyzing the main PHP file in "WpRightOnTime" version 1.1.0
39 characters long description:
Every WordPress schedule rigth on time!

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,407 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP293043671,314
JavaScript121193

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity8.19
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes425.00%
Methods81
▷ Static methods1214.81%
▷ Public methods7390.12%
▷ Protected methods44.94%
▷ Private methods44.94%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected