90% post-to-queue

Code Review | Post to Queue

WordPress plugin Post to Queue scored90%from 54 tests.

About plugin

  • Plugin page: post-to-queue
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2015
  • Latest release: Jun 2, 2015
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: dimadin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,830 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
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼0.65ms] Passed 4 tests

Server-side resources used by Post to Queue
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.15 ▲0.35
Dashboard /wp-admin3.53 ▲0.2348.80 ▼0.72
Posts /wp-admin/edit.php3.64 ▲0.2953.07 ▲0.17
Add New Post /wp-admin/post-new.php6.12 ▲0.2396.58 ▼2.41
Media Library /wp-admin/upload.php3.45 ▲0.2243.76 ▲7.48

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post to Queue
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.37 ▲0.181.62 ▲0.0843.01 ▲3.63
Dashboard /wp-admin2,195 ▲185.58 ▼0.0584.56 ▼4.3538.95 ▼2.50
Posts /wp-admin/edit.php2,097 ▼62.01 ▲0.0439.10 ▲2.3835.39 ▼1.38
Add New Post /wp-admin/post-new.php1,526 ▼023.00 ▼0.09682.13 ▼21.4267.86 ▲9.25
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.03110.58 ▼7.3646.30 ▼2.64

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output 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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: queue, schedule, scheduling

post-to-queue/post-to-queue.php Passed 13 tests

"Post to Queue" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
Stack posts to queue and auto publish them in chosen interval and time frame.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,010 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP42901,369833
PO File1303788
JavaScript1111555
CSS14034

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity45.00
▷ Minimum class complexity11.00
▷ Maximum class complexity73.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods55
▷ Static methods00.00%
▷ Public methods55100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin