83% simple-schedule-notice

Code Review | Schedule Notice

WordPress plugin Schedule Notice scored83%from 54 tests.

About plugin

  • Plugin page: simple-schedule-n...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 20, 2017
  • Latest release: Mar 8, 2021
  • Number of updates: 23
  • Update frequency: every 57.8 days
  • Top authors: ekamiya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,073 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.48ms] Passed 4 tests

This is a short check of server-side resources used by Schedule Notice
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.68 ▲4.54
Dashboard /wp-admin3.31 ▲0.0049.26 ▲0.96
Posts /wp-admin/edit.php3.36 ▲0.0048.51 ▼4.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.85 ▼22.64
Media Library /wp-admin/upload.php3.23 ▲0.0038.76 ▲4.34

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Schedule Notice
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.03 ▼0.531.80 ▲0.1644.14 ▼0.08
Dashboard /wp-admin2,195 ▲155.62 ▼0.0597.42 ▲5.2242.78 ▼1.30
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0337.31 ▼2.4433.10 ▼3.87
Add New Post /wp-admin/post-new.php1,526 ▼1024.00 ▲1.03683.57 ▲57.8856.68 ▼5.40
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.06101.93 ▼2.5840.81 ▼4.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-schedule-notice/simple-schedule-notice.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: A description for screenshot #2 is missing in simple-schedule-notice/assets to your readme.txt
  • Donate link: Invalid URI ("")
  • Requires at least: Version format is invalid
You can look at the official readme.txt

simple-schedule-notice/simple-schedule-notice.php 92% from 13 tests

The main PHP script in "Schedule Notice" version 1.0.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,349 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5731141,114
PO File16772156
CSS113549
JavaScript14430

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity91.00
▷ Minimum class complexity52.00
▷ Maximum class complexity130.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods58
▷ Static methods00.00%
▷ Public methods2543.10%
▷ Protected methods00.00%
▷ Private methods3356.90%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin