83% scheduled-pages-dashboard-widget

Code Review | Scheduled Pages Dashboad Widget

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

About plugin

  • Plugin page: scheduled-pages-d...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Sep 17, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: f.staude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /679 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Scheduled Pages Dashboad Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.50 ▲4.38
Dashboard /wp-admin3.34 ▼0.0148.58 ▼12.07
Posts /wp-admin/edit.php3.38 ▲0.0244.36 ▼2.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.74 ▼15.89
Media Library /wp-admin/upload.php3.25 ▲0.0237.39 ▲1.86

Server storage [IO: ▲0.08MB] [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_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Scheduled Pages Dashboad Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲5014.34 ▼0.211.85 ▲0.1442.98 ▲3.70
Dashboard /wp-admin2,242 ▲615.67 ▼0.0586.17 ▼13.8743.65 ▲2.72
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0533.27 ▼5.6334.70 ▲0.42
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▲0.02664.87 ▼7.8854.28 ▼0.98
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.00101.89 ▼12.6345.68 ▼0.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • 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
Everything seems fine, however this is by no means 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-pages-dashboard-widget/class-scheduled-pages-dashboard-widget.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Dashboard Widget) image not found
You can take inspiration from this readme.txt

scheduled-pages-dashboard-widget/scheduled-pages-dashboard-widget.php 85% from 13 tests

The principal PHP file in "Scheduled Pages Dashboad Widget" v. 0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin424 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2403145
PHP22743110
PO File2286498
CSS211071

PHP code Passed 2 tests

A short 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.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png49.13KB13.14KB▼ 73.25%