83% last-scheduled-post-time

Code Review | last scheduled post time

WordPress plugin last scheduled post time scored83%from 54 tests.

About plugin

  • Plugin page: last-scheduled-po...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 26, 2018
  • Latest release: Mar 31, 2018
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: dpoakaspine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /566 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
Install script ran successfully

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

An overview of server-side resources used by last scheduled post time
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.91 ▲0.16
Dashboard /wp-admin3.31 ▲0.0151.97 ▲3.21
Posts /wp-admin/edit.php3.36 ▲0.0147.33 ▼3.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.78 ▼3.97
Media Library /wp-admin/upload.php3.24 ▲0.0134.69 ▼0.50

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for last scheduled post time
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.541.65 ▲0.0839.54 ▼7.63
Dashboard /wp-admin2,206 ▲215.88 ▼0.01108.91 ▲9.2937.85 ▼5.66
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0139.04 ▼5.6634.58 ▼0.05
Add New Post /wp-admin/post-new.php1,514 ▼2317.61 ▼5.63590.14 ▼45.0348.24 ▼0.55
Media Library /wp-admin/upload.php1,382 ▼34.27 ▲0.0195.99 ▼6.9340.51 ▼6.28

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

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
Please take a closer look at the following
  • 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/last-scheduled-post-time/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
  • Requires php: Invalid version format
You can take inspiration from this readme.txt

last-scheduled-post-time/index.php 85% from 13 tests

The main PHP script in "last scheduled post time" version 1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("last-scheduled-post-time.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111443

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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