84% post-updated-messages

Code Review | Post Updated Messages

WordPress plugin Post Updated Messages scored 84% from 54 tests.

About plugin

  • Plugin page: post-updated-mess...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-4.9
  • WordPress version: 6.3.1
  • First release: Apr 8, 2016
  • Latest release: Feb 22, 2018
  • Number of updates: 11
  • Update frequency: every 62.4 days
  • Top authors: morganestes (81.82%)deployer (27.27%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 879 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.00MB] [CPU: ▼0.60ms] Passed 4 tests

An overview of server-side resources used by Post Updated Messages
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.14 ▼0.31
Dashboard /wp-admin3.31 ▲0.0044.88 ▼2.90
Posts /wp-admin/edit.php3.36 ▲0.0148.05 ▲3.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.83 ▲2.10
Media Library /wp-admin/upload.php3.23 ▲0.0034.15 ▼1.28

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

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

Browser metrics Passed 4 tests

Post Updated Messages: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1114.43 ▲1.261.72 ▼0.1143.42 ▼1.80
Dashboard /wp-admin2,209 ▲35.85 ▲0.98103.83 ▼9.3235.24 ▼10.40
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0640.87 ▲6.5034.41 ▲0.58
Add New Post /wp-admin/post-new.php1,534 ▼023.24 ▲0.14660.70 ▼30.4463.47 ▲3.49
Media Library /wp-admin/upload.php1,385 ▼04.17 ▼0.0692.62 ▼9.9345.86 ▲1.22

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
These items require your attention
  • This plugin does not fully uninstall, 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 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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/post-updated-messages/post-updated-messages.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: admin, custom post types, post messages

post-updated-messages/post-updated-messages.php Passed 13 tests

"Post Updated Messages" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
Tailored updated messages for custom post types.

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 plugin162 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP134107162

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin