84% quick-post-change

Code Review | Quick Post Change

WordPress plugin Quick Post Change scored84%from 54 tests.

About plugin

  • Plugin page: quick-post-change
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2015
  • Latest release: Sep 19, 2015
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: RevolutionMizu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /603 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.01MB] [CPU: ▼3.84ms] Passed 4 tests

An overview of server-side resources used by Quick Post Change
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.82 ▲2.48
Dashboard /wp-admin3.32 ▲0.0143.36 ▼6.36
Posts /wp-admin/edit.php3.37 ▲0.0145.53 ▼4.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.05 ▼4.74
Media Library /wp-admin/upload.php3.24 ▲0.0134.38 ▲0.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick Post Change
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.59 ▲0.031.68 ▲0.0545.05 ▲0.38
Dashboard /wp-admin2,195 ▲185.55 ▼0.0386.68 ▼13.3837.44 ▼6.02
Posts /wp-admin/edit.php2,100 ▲31.98 ▼0.0240.94 ▲2.7539.28 ▲4.75
Add New Post /wp-admin/post-new.php6,235 ▲4,70426.08 ▲3.02948.58 ▲321.9278.41 ▲21.62
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.01100.06 ▲3.0443.98 ▼2.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • 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 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-post-change/quick-post-change.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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 need to be fixed:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

quick-post-change/quick-post-change.php Passed 13 tests

"Quick Post Change" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Metabox that allows you to change posts quickly on the edit screen.

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
There were no executable files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181734

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
No PNG files were detected