90% quick-related-post

Code Review | Quick related post

WordPress plugin Quick related post scored 90% from 54 tests.

About plugin

  • Plugin page: quick-related-post
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2016
  • Latest release: May 25, 2016
  • Number of updates: 19
  • Update frequency: every 1.5 days
  • Top authors: chuoitaotau (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

10+ active / 1,416 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.10MB] [CPU: ▼2.53ms] Passed 4 tests

Server-side resources used by Quick related post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1138.41 ▼1.40
Dashboard /wp-admin3.40 ▲0.1044.13 ▼2.57
Posts /wp-admin/edit.php3.45 ▲0.1048.27 ▼2.89
Add New Post /wp-admin/post-new.php5.98 ▲0.1097.64 ▼3.26
Media Library /wp-admin/upload.php3.32 ▲0.1035.50 ▲2.75

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 14 new options
New WordPress options
can_compress_scripts
quick_related_post_excerpt
widget_theysaidso_widget
quick_related_post_thumbnail
quick_related_post_style_default
widget_recent-posts
theysaidso_admin_options
quick_related_post_date
quick_related_post_author
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for Quick related post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲21813.73 ▼0.855.35 ▲3.6238.22 ▼0.82
Dashboard /wp-admin2,243 ▲524.92 ▼0.0599.77 ▼0.2741.62 ▼5.58
Posts /wp-admin/edit.php2,123 ▲342.09 ▲0.0941.70 ▲1.5438.91 ▲3.68
Add New Post /wp-admin/post-new.php1,545 ▲1217.62 ▼5.55679.45 ▲8.7858.94 ▲2.92
Media Library /wp-admin/upload.php1,422 ▲374.24 ▼0.0194.15 ▼4.0939.41 ▼9.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • quick_related_post_readmore
    • quick_related_post_style_default
    • db_upgraded
    • quick_related_post_title
    • widget_theysaidso_widget
    • widget_recent-comments
    • quick_related_post_version
    • quick_related_post_author
    • widget_recent-posts
    • can_compress_scripts
    • ...

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: related, related post, related content, posts

quick-related-post/quick-related-post.php Passed 13 tests

The primary PHP file in "Quick related post" version 2.0 is used by WordPress to initiate all plugin functionality
58 characters long description:
Easy display Related Post under post by tags and category.

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 detected1,088 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP88822790
CSS51819228
JavaScript32070

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin