84% quickpost

Code Review | QuickPost - Add New Posts & Duplicate from the Block Editor

WordPress plugin QuickPost - Add New Posts & Duplicate from the Block Editor scored84%from 54 tests.

About plugin

  • Plugin page: quickpost
  • Plugin version: 0.1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2022
  • Latest release: Feb 27, 2023
  • Number of updates: 23
  • Update frequency: every 16.3 days
  • Top authors: aurooba (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /3,571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by QuickPost - Add New Posts & Duplicate from the Block Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.83 ▼7.98
Dashboard /wp-admin3.31 ▼0.0442.17 ▼17.50
Posts /wp-admin/edit.php3.36 ▲0.0045.76 ▲2.31
Add New Post /wp-admin/post-new.php5.88 ▼0.0078.54 ▼6.18
Media Library /wp-admin/upload.php3.23 ▲0.0034.97 ▼1.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for QuickPost - Add New Posts & Duplicate from the Block Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.30 ▼0.251.97 ▲0.0438.31 ▼6.37
Dashboard /wp-admin2,195 ▲155.58 ▼0.0793.15 ▼8.5137.25 ▼6.72
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0340.42 ▲5.5336.34 ▼1.35
Add New Post /wp-admin/post-new.php1,549 ▲1818.97 ▼4.10618.88 ▼73.2075.46 ▲17.90
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.0999.73 ▼15.1247.01 ▲0.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickpost/quickpost.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: gutenberg, duplicate post, add new post, block editor, add new...

quickpost/quickpost.php 92% from 13 tests

The entry point to "QuickPost - Add New Posts & Duplicate from the Block Editor" version 0.1.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin30 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP241825
JavaScript1034
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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