84% ready-to-publish

Code Review | Ready To Publish

WordPress plugin Ready To Publish scored84%from 54 tests.

About plugin

  • Plugin page: ready-to-publish
  • Plugin version: 0.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Nov 10, 2015
  • Latest release: Nov 10, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: whyisjake (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /633 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Ready To Publish
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.79 ▼7.59
Dashboard /wp-admin3.32 ▲0.0148.73 ▼3.19
Posts /wp-admin/edit.php3.37 ▲0.0148.80 ▼0.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.14 ▼12.21
Media Library /wp-admin/upload.php3.24 ▲0.0139.81 ▲3.62

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ready To Publish
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.65 ▼0.751.77 ▼0.0043.06 ▼1.63
Dashboard /wp-admin2,208 ▲175.84 ▲0.9494.89 ▼22.6440.13 ▼10.64
Posts /wp-admin/edit.php2,094 ▲52.04 ▲0.0241.08 ▲0.2635.55 ▲3.25
Add New Post /wp-admin/post-new.php1,534 ▲12323.14 ▲5.08618.83 ▼12.8149.41 ▲0.15
Media Library /wp-admin/upload.php1,387 ▲24.24 ▲0.0497.97 ▼5.6842.36 ▼1.08

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 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/ready-to-publish/ready-to-publish.php:74

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (This is what the checkbox looks like in the admin, with the default text. Smashing right?) image required
The official readme.txt might help

ready-to-publish/ready-to-publish.php Passed 13 tests

"Ready To Publish" version 0.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
Add a little checkbox to ensure that you are ready to publish a post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected64 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript110235
PHP1103529

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png37.00KB10.98KB▼ 70.32%