84% extended-post-status

Code Review | Extended Post Status

WordPress plugin Extended Post Status scored84%from 54 tests.

About plugin

  • Plugin page: extended-post-status
  • Plugin version: 1.0.20
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Nov 28, 2018
  • Latest release: Jun 13, 2023
  • Number of updates: 41
  • Update frequency: every 40.5 days
  • Top authors: welly2103 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /17,779 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.17MB] [CPU: ▲2.79ms] Passed 4 tests

An overview of server-side resources used by Extended Post Status
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1742.73 ▲4.48
Dashboard /wp-admin3.48 ▲0.1753.06 ▲4.86
Posts /wp-admin/edit.php3.59 ▲0.2451.32 ▲1.34
Add New Post /wp-admin/post-new.php6.06 ▲0.17103.40 ▲5.73
Media Library /wp-admin/upload.php3.40 ▲0.1738.83 ▲0.48
Extended Post Status /wp-admin/options-general.php?page=extended-post-status-taxonomy3.2527.20

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Extended Post Status
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.20 ▼1.531.64 ▼0.1242.24 ▲2.25
Dashboard /wp-admin2,207 ▲165.81 ▼0.0997.26 ▼8.7936.56 ▼5.35
Posts /wp-admin/edit.php2,147 ▲582.01 ▲0.0340.71 ▼0.7737.19 ▼0.22
Add New Post /wp-admin/post-new.php6,317 ▲4,79719.68 ▼3.44855.08 ▲170.0858.63 ▲8.32
Media Library /wp-admin/upload.php1,395 ▲44.28 ▲0.0995.60 ▼5.6341.94 ▼0.97
Extended Post Status /wp-admin/options-general.php?page=extended-post-status-taxonomy1,3002.1428.0928.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=extended-post-status-taxonomy
    • > Javascript (severe) in unknown
    /wp-admin/edit-tags.php?taxonomy=status 381:16 Uncaught ReferenceError: wp is not defined

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
7 plugin tags: post type, post, extended, status, page...

extended-post-status/extended-post-status.php Passed 13 tests

The main PHP file in "Extended Post Status" ver. 1.0.20 adds more information about the plugin and also serves as the entry point for this plugin
26 characters long description:
Add new post status types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected774 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP980545683
PO File1364188
JavaScript1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity16.33
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods46
▷ Static methods1021.74%
▷ Public methods4189.13%
▷ Protected methods00.00%
▷ Private methods510.87%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin