84% front-page-scheduler

Code Review | Front Page Scheduler

WordPress plugin Front Page Scheduler scored84%from 54 tests.

About plugin

  • Plugin page: front-page-scheduler
  • Plugin version: 0.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 20, 2011
  • Latest release: Aug 10, 2023
  • Number of updates: 68
  • Update frequency: every 65.2 days
  • Top authors: edersonpeka (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /8,394 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼11.83ms] Passed 4 tests

A check of server-side resources used by Front Page Scheduler
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6915.35 ▼27.79
Dashboard /wp-admin3.32 ▲0.0244.69 ▼4.22
Posts /wp-admin/edit.php3.37 ▲0.0246.72 ▼2.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.22 ▼12.80
Media Library /wp-admin/upload.php3.24 ▲0.0134.28 ▼2.22

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Front Page Scheduler
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.044.87 ▲3.1239.78 ▼0.48
Dashboard /wp-admin2,206 ▲185.89 ▲0.00107.66 ▲4.7440.06 ▼3.45
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.1039.45 ▲2.1634.25 ▲3.75
Add New Post /wp-admin/post-new.php1,542 ▲2018.72 ▼4.57606.74 ▼48.3947.56 ▼10.28
Media Library /wp-admin/upload.php1,379 ▼124.36 ▲0.12100.02 ▼2.2446.25 ▼0.22

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just 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 add_action() in wp-content/plugins/front-page-scheduler/front-page-scheduler.php:298

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

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: schedule, front page, cms, frontpage, scheduler

front-page-scheduler/front-page-scheduler.php Passed 13 tests

"Front Page Scheduler" version 0.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
117 characters long description:
Front Page Scheduler plugin let you choose an alternate static front page to be shown during a specific daily period.

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
Everything looks great! No dangerous files found in this plugin380 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP135101166
JavaScript11063131
PO File132970
Markdown19013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin