90% practical-publishing-actions

Code Review | Practical Publishing Actions

WordPress plugin Practical Publishing Actions scored90%from 54 tests.

About plugin

  • Plugin page: practical-publish...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.7.5
  • WordPress version: 6.3.1
  • First release: May 22, 2017
  • Latest release: May 23, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: lancehmd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.99ms] Passed 4 tests

An overview of server-side resources used by Practical Publishing Actions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.47 ▼5.63
Dashboard /wp-admin3.33 ▼0.0250.81 ▼20.30
Posts /wp-admin/edit.php3.38 ▲0.0251.76 ▲0.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.75 ▼18.84
Media Library /wp-admin/upload.php3.25 ▲0.0236.67 ▲1.30

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Practical Publishing Actions
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.20 ▼0.181.64 ▼0.2141.07 ▼1.32
Dashboard /wp-admin2,198 ▲205.66 ▼0.0597.14 ▼4.7441.76 ▼0.77
Posts /wp-admin/edit.php2,100 ▼02.11 ▲0.1240.47 ▲1.5937.80 ▲1.51
Add New Post /wp-admin/post-new.php1,526 ▼517.59 ▼5.62613.45 ▼36.3852.35 ▼1.91
Media Library /wp-admin/upload.php1,403 ▼04.24 ▼0.03101.18 ▲0.2642.76 ▼0.79

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • License uri: Please fix this invalid URI: "license.txt"
The official readme.txt might help

practical-publishing-actions/practical-publishing-actions.php Passed 13 tests

The entry point to "Practical Publishing Actions" version 1.0.0 is a PHP file that has certain tags in its header comment area
74 characters long description:
Add a new post or return to the posts list after creating or updating one.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1376664
CSS14023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin