84% helpinator-quick-publish

Code Review | Helpinator Quick Publish

WordPress plugin Helpinator Quick Publish scored 84% from 54 tests.

About plugin

  • Plugin page: helpinator-quick-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 22, 2019
  • Latest release: Aug 11, 2020
  • Number of updates: 5
  • Update frequency: every 113.6 days
  • Top authors: grayscaler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 512 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.10ms] Passed 4 tests

This is a short check of server-side resources used by Helpinator Quick Publish
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.36 ▼7.07
Dashboard /wp-admin3.33 ▲0.0350.26 ▲4.44
Posts /wp-admin/edit.php3.38 ▲0.0353.11 ▲2.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.92 ▼14.12
Media Library /wp-admin/upload.php3.25 ▲0.0332.91 ▼2.07

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Helpinator Quick Publish
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.34 ▼1.011.73 ▼0.0439.73 ▼5.30
Dashboard /wp-admin2,206 ▲245.87 ▼0.03108.49 ▼7.2244.00 ▲0.28
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0240.52 ▲0.4635.01 ▲0.12
Add New Post /wp-admin/post-new.php1,540 ▲1923.35 ▲0.08604.16 ▼91.9549.69 ▼9.44
Media Library /wp-admin/upload.php1,385 ▼34.23 ▼0.0495.54 ▼10.2541.85 ▼6.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/helpinator-quick-publish/hprquickpub.php:242

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: helpinator, documentation, software documentation, online documentation, help

helpinator-quick-publish/hprquickpub.php 92% from 13 tests

This is the main PHP file of "Helpinator Quick Publish" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("helpinator-quick-publish.php" instead of "hprquickpub.php")

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
No dangerous file extensions were detected144 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17129144

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected