83% scheduled-posts-dashboad-widget

Code Review | Scheduled Posts Dashboad Widget

WordPress plugin Scheduled Posts Dashboad Widget scored83%from 54 tests.

About plugin

  • Plugin page: scheduled-posts-d...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Sep 15, 2014
  • Latest release: Sep 15, 2014
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: f.staude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,290 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.02MB] [CPU: ▼4.76ms] Passed 4 tests

An overview of server-side resources used by Scheduled Posts Dashboad Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0239.77 ▼1.96
Dashboard /wp-admin3.37 ▲0.0351.26 ▼4.60
Posts /wp-admin/edit.php3.48 ▲0.0855.43 ▲8.45
Add New Post /wp-admin/post-new.php5.95 ▲0.0290.80 ▼13.74
Media Library /wp-admin/upload.php3.29 ▲0.0237.28 ▲1.26

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Scheduled Posts Dashboad Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.69 ▲0.361.69 ▲0.0745.37 ▲1.54
Dashboard /wp-admin2,239 ▲585.60 ▼0.0890.13 ▼16.5838.75 ▲0.11
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0340.14 ▼0.5436.56 ▼3.64
Add New Post /wp-admin/post-new.php1,526 ▼223.62 ▲0.62651.54 ▼5.0164.31 ▲11.04
Media Library /wp-admin/upload.php1,397 ▼04.16 ▲0.0199.39 ▼11.2444.77 ▲0.71

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-posts-dashboad-widget/class-scheduled-posts-dashboard-widget.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Dashboard Widget) image required
The official readme.txt is a good inspiration

scheduled-posts-dashboad-widget/scheduled-posts-dashboard-widget.php 69% from 13 tests

"Scheduled Posts Dashboad Widget" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("scheduled-posts-dashboad-widget.php" instead of "scheduled-posts-dashboard-widget.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected424 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2403145
PHP22743110
PO File2286498
CSS211071

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods480.00%
▷ Public methods5100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin