84% publish-confirm-message

Code Review | Publish Confirm Message

WordPress plugin Publish Confirm Message scored84%from 54 tests.

About plugin

  • Plugin page: publish-confirm-m...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 11, 2020
  • Latest release: Mar 28, 2023
  • Number of updates: 32
  • Update frequency: every 34.8 days
  • Top authors: arulprasadj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,050 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by Publish Confirm Message
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.46 ▼1.47
Dashboard /wp-admin3.34 ▲0.0349.35 ▼3.08
Posts /wp-admin/edit.php3.39 ▲0.0350.65 ▲0.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.87 ▼22.82
Media Library /wp-admin/upload.php3.26 ▲0.0339.20 ▲3.79
Publish Confirm Message /wp-admin/options-general.php?page=publish-confirm-message/core/admin/adminpage.php3.2333.79

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Publish Confirm Message
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.35 ▼0.312.69 ▲0.8755.31 ▲10.99
Dashboard /wp-admin2,201 ▲245.62 ▲0.1081.47 ▼11.6038.90 ▼6.45
Posts /wp-admin/edit.php2,104 ▲11.98 ▼0.0134.30 ▼6.1229.66 ▼3.21
Add New Post /wp-admin/post-new.php1,540 ▲1418.14 ▼5.45621.72 ▼17.0267.84 ▲15.94
Media Library /wp-admin/upload.php1,410 ▲74.20 ▲0.04103.09 ▼0.4447.50 ▲1.90
Publish Confirm Message /wp-admin/options-general.php?page=publish-confirm-message/core/admin/adminpage.php8102.0326.6538.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/publish-confirm-message/core/apj-functions.php
    • > /wp-content/plugins/publish-confirm-message/core/admin/adminpage.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Contributors: Plugin contributors not specified
The official readme.txt might help

publish-confirm-message/publish-confirm-message.php Passed 13 tests

The main PHP file in "Publish Confirm Message" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
85 characters long description:
An extra confirmation dialogue for the publish button to avoid accidental publishing.

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
There were no executable files found in this plugin153 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42190153

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
There were not PNG files found in your plugin