78% queue-posts

Code Review | Queue Posts

WordPress plugin Queue Posts scored78%from 54 tests.

About plugin

  • Plugin page: queue-posts
  • Plugin version: 1.6.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 6.3.1
  • First release: Aug 27, 2013
  • Latest release: Dec 10, 2018
  • Number of updates: 20
  • Update frequency: every 96.6 days
  • Top authors: 2biazdk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,565 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.86ms] Passed 4 tests

An overview of server-side resources used by Queue Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.47 ▲1.00
Dashboard /wp-admin3.43 ▲0.1346.62 ▼5.82
Posts /wp-admin/edit.php3.47 ▲0.1146.46 ▼3.11
Add New Post /wp-admin/post-new.php6.12 ▲0.2482.55 ▼3.49
Media Library /wp-admin/upload.php3.37 ▲0.1435.10 ▲1.17
Queue Posts /wp-admin/options-general.php?page=queue-posts-settings3.2730.49

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Queue Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.23 ▼1.142.59 ▲0.7644.05 ▼0.12
Dashboard /wp-admin2,221 ▲305.85 ▲0.94110.38 ▼7.9147.85 ▲3.76
Posts /wp-admin/edit.php2,107 ▲182.05 ▼0.0043.38 ▲5.4237.71 ▲3.83
Add New Post /wp-admin/post-new.php1,536 ▼623.24 ▲4.76711.30 ▲63.5955.69 ▲1.83
Media Library /wp-admin/upload.php1,406 ▲154.15 ▼0.04112.26 ▲14.1947.30 ▲5.01
Queue Posts /wp-admin/options-general.php?page=queue-posts-settings1,1412.1027.9929.89

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=queue-posts-settings
    • > Deprecated in wp-content/plugins/queue-posts/queue-posts.php+413
    mktime(): You should be using the time() function instead
    • > GET request to /wp-admin/options-general.php?page=queue-posts-settings
    • > Notice in wp-content/plugins/queue-posts/queue-posts.php+434
    Undefined index: msg

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/queue-posts/queue-posts.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 25 tag instead of maximum 10
The official readme.txt is a good inspiration

queue-posts/queue-posts.php Passed 13 tests

The entry point to "Queue Posts" version 1.6.6 is a PHP file that has certain tags in its header comment area
70 characters long description:
Queue posts and pages for later publishing with the press of a button.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin443 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP312843405
CSS12038

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions15
▷ Named functions15100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/settings-icon.png2.65KB1.80KB▼ 32.30%