84% mklasens-post-edit-status

Code Review | mklasen's Post Edit Status

WordPress plugin mklasen's Post Edit Status scored84%from 54 tests.

About plugin

  • Plugin page: mklasens-post-edi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 16, 2017
  • Latest release: Mar 16, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mklasen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /408 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by mklasen's Post Edit Status
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.05 ▲0.75
Dashboard /wp-admin3.31 ▲0.0148.52 ▲1.90
Posts /wp-admin/edit.php3.36 ▲0.0144.82 ▼4.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.33 ▼15.48
Media Library /wp-admin/upload.php3.24 ▲0.0133.83 ▲1.09
Post Edit Status /wp-admin/options-general.php?page=mklasens-post-edit-status3.2031.40

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for mklasen's Post Edit Status
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.74 ▲0.362.00 ▲0.2344.43 ▼0.32
Dashboard /wp-admin2,213 ▲224.83 ▼0.05110.72 ▲4.2742.23 ▼1.69
Posts /wp-admin/edit.php2,096 ▲72.13 ▲0.0235.20 ▼2.4632.70 ▼2.73
Add New Post /wp-admin/post-new.php1,540 ▲2623.67 ▲6.15635.85 ▼15.1659.86 ▼3.55
Media Library /wp-admin/upload.php1,395 ▲44.27 ▲0.0295.40 ▼6.8343.98 ▼0.57
Post Edit Status /wp-admin/options-general.php?page=mklasens-post-edit-status7822.0625.1726.91

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mklasens-post-edit-status/mklasens-post-edit-status.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: front-end, locked, post edit, check post lock, edit status

mklasens-post-edit-status/mklasens-post-edit-status.php 92% from 13 tests

The primary PHP file in "mklasen's Post Edit Status" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please improve your description making it at least 10 characters long (currently 0 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1143456

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin