83% multisite-postie-cron-creator

Code Review | Multisite Postie CRON Creator

WordPress plugin Multisite Postie CRON Creator scored83%from 54 tests.

About plugin

  • Plugin page: multisite-postie-...
  • Plugin version: 1.02
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 25, 2019
  • Latest release: Nov 19, 2023
  • Number of updates: 8
  • Update frequency: every 182.0 days
  • Top authors: rhellewell@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /632 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.61ms] Passed 4 tests

Analyzing server-side resources used by Multisite Postie CRON Creator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.72 ▼0.87
Dashboard /wp-admin3.34 ▼0.0048.68 ▼11.40
Posts /wp-admin/edit.php3.39 ▲0.0445.33 ▲2.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.28 ▼4.01
Media Library /wp-admin/upload.php3.26 ▲0.0433.72 ▲1.83
Multisite Postie CRON Creator Info/Usage /wp-admin/options-general.php?page=CWMSPC_settings3.2330.39

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

Browser metrics Passed 4 tests

Multisite Postie CRON Creator: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3814.18 ▼0.091.82 ▲0.0349.05 ▲4.64
Dashboard /wp-admin2,195 ▲185.49 ▼0.0788.67 ▼13.7434.57 ▼10.29
Posts /wp-admin/edit.php2,109 ▲121.94 ▼0.0134.69 ▼0.8330.21 ▼5.59
Add New Post /wp-admin/post-new.php1,531 ▼023.40 ▲0.59593.69 ▼113.6157.71 ▲4.75
Media Library /wp-admin/upload.php1,406 ▲64.19 ▼0.0594.75 ▼7.2438.53 ▼6.55
Multisite Postie CRON Creator Info/Usage /wp-admin/options-general.php?page=CWMSPC_settings1,0731.9726.8030.74

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • 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)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/multisite-postie-cron-creator/multisite-postie-cron.php on line 38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/multisite-postie-cron-creator/multisite-postie-cron.php:244
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/multisite-postie-cron-creator/multisite-postie-cron.php on line 38
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-postie-cron-creator/multisite-postie-cron.php on line 38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 83% 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: The official readme.txt might help

multisite-postie-cron-creator/multisite-postie-cron.php 69% from 13 tests

The main PHP script in "Multisite Postie CRON Creator" version 1.02 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "4.9.6")
  • Description: Please don't use more than 140 characters for the plugin description (currently 326 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("multisite-postie-cron-creator.php" instead of "multisite-postie-cron.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected327 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP14763235
CSS33191
JavaScript1001

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.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.30MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png108.09KB10.50KB▼ 90.29%
assets/icon-128x128.png75.24KB5.04KB▼ 93.29%
css/soda-cup-straw.png121.76KB58.15KB▼ 52.24%