90% quickpick

Code Review | QuickPick

WordPress plugin QuickPick scored90%from 54 tests.

About plugin

  • Plugin page: quickpick
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Jul 14, 2021
  • Latest release: Nov 11, 2022
  • Number of updates: 6
  • Update frequency: every 80.8 days
  • Top authors: alexus450 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /308 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by QuickPick
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.39 ▼1.39
Dashboard /wp-admin3.34 ▲0.0347.48 ▼2.90
Posts /wp-admin/edit.php3.39 ▲0.0345.84 ▲2.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.86 ▼8.01
Media Library /wp-admin/upload.php3.26 ▲0.0336.64 ▲2.47

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for QuickPick
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.14 ▼0.211.76 ▲0.0843.94 ▲0.90
Dashboard /wp-admin2,197 ▲175.52 ▼0.0585.18 ▼14.6137.36 ▼9.43
Posts /wp-admin/edit.php2,129 ▲291.98 ▼0.0433.48 ▼2.1033.59 ▼4.39
Add New Post /wp-admin/post-new.php1,536 ▲1018.35 ▼4.79648.19 ▼27.3270.03 ▲19.07
Media Library /wp-admin/upload.php1,399 ▼14.19 ▲0.02100.36 ▲1.2945.23 ▲1.22

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 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Posts list with the quickpick button), #2 (Pages list with the quickpick button)
Please take inspiration from this readme.txt

quickpick/quickpick.php Passed 13 tests

Analyzing the main PHP file in "QuickPick" version 1.0.1
108 characters long description:
QuickPick is a tiny WordPress plugin that will help you to save time on finding just recently editing posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected207 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25588206
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.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
5 PNG files occupy 0.39MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png102.89KB30.72KB▼ 70.14%
screenshot-2.png95.71KB28.83KB▼ 69.87%
Screenshot-1.png102.89KB30.72KB▼ 70.14%
assets/images/quickpick.png1.64KB0.53KB▼ 67.42%
Screenshot-2.png95.71KB28.83KB▼ 69.87%