89% pick-n-post-quote

Code Review | Pick-n-Post Quote

WordPress plugin Pick-n-Post Quote scored89%from 54 tests.

About plugin

  • Plugin page: pick-n-post-quote
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 28, 2019
  • Latest release: Jul 8, 2019
  • Number of updates: 7
  • Update frequency: every 1.4 days
  • Top authors: bigacelloy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.26ms] Passed 4 tests

Server-side resources used by Pick-n-Post Quote
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.02 ▼7.00
Dashboard /wp-admin3.40 ▲0.0949.75 ▲0.04
Posts /wp-admin/edit.php3.45 ▲0.0951.28 ▼4.78
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.69 ▼4.53
Media Library /wp-admin/upload.php3.32 ▲0.0934.32 ▼0.74

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_pick_n_post_quote
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Pick-n-Post Quote
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3114.48 ▼0.111.61 ▼0.5949.49 ▲3.95
Dashboard /wp-admin2,209 ▲185.91 ▲1.03100.41 ▼14.5239.48 ▼9.53
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0636.03 ▼3.0833.41 ▼14.07
Add New Post /wp-admin/post-new.php1,534 ▲123.08 ▼0.27638.76 ▼40.7349.88 ▼8.38
Media Library /wp-admin/upload.php1,388 ▲64.19 ▲0.0296.91 ▼5.0838.69 ▼1.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_pick_n_post_quote
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

pick-n-post-quote/pick-n-post-quote.php 85% from 13 tests

The main PHP script in "Pick-n-Post Quote" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin333 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16362321
CSS10012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity11.17
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected