73% quick-post-management

Code Review | Quick Post Management

WordPress plugin Quick Post Management scored73%from 54 tests.

About plugin

  • Plugin page: quick-post-manage...
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2012
  • Latest release: Oct 28, 2013
  • Number of updates: 23
  • Update frequency: every 17.1 days
  • Top authors: Namely (60.87%)Name.ly (43.48%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /6,544 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼1.44MB] [CPU: ▼44.64ms] Passed 4 tests

An overview of server-side resources used by Quick Post Management
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.69 ▼1.74
Dashboard /wp-admin2.51 ▼0.8013.47 ▼35.09
Posts /wp-admin/edit.php2.51 ▼0.8511.86 ▼33.67
Add New Post /wp-admin/post-new.php2.51 ▼3.3812.58 ▼87.76
Media Library /wp-admin/upload.php2.51 ▼0.7210.51 ▼22.05
QPM /wp-admin/options-general.php?page=qpm2.5111.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Quick Post Management
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6413.74 ▼0.621.70 ▼0.2047.04 ▲2.93
Dashboard /wp-admin2,210 ▲254.86 ▼1.02101.49 ▼5.8039.56 ▼4.09
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0136.38 ▼4.7431.69 ▼3.85
Add New Post /wp-admin/post-new.php1,517 ▼1117.46 ▼0.89660.64 ▲37.7048.94 ▼3.83
Media Library /wp-admin/upload.php1,392 ▲44.15 ▼0.0995.69 ▼4.3941.37 ▼4.27
QPM /wp-admin/options-general.php?page=qpm9862.0221.9539.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/quick-post-management/qpm_admin.php+39
    Undefined index: post_id
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • qpm_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=qpm
    • > Notice in wp-content/plugins/quick-post-management/qpm_admin.php+39
    Undefined index: post_id
    • > GET request to /wp-admin/options-general.php?page=qpm
    • > User notice in wp-includes/functions.php+5905
    Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
    • > GET request to /wp-admin/options-general.php?page=qpm
    • > Notice in wp-content/plugins/quick-post-management/qpm_settings.php+13
    Undefined index: qpmnonce

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (54 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin page), #2 (Post page)
You can take inspiration from this readme.txt

quick-post-management/index.php 85% from 13 tests

Analyzing the main PHP file in "Quick Post Management" version 0.0.6
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quick-post-management.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)

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 detected502 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP412525347
PO File15050136
HTML14019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png33.15KB17.73KB▼ 46.53%
screenshot-2.png142.80KB47.59KB▼ 66.68%