83% recent-popular-comment-tag-widget

Code Review | Recent Popular Comment Tag Widget

WordPress plugin Recent Popular Comment Tag Widget scored83%from 54 tests.

About plugin

  • Plugin page: recent-popular-co...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Jul 8, 2018
  • Latest release: Jul 8, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: joyelkhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /565 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.09MB] [CPU: ▼4.03ms] Passed 4 tests

Analyzing server-side resources used by Recent Popular Comment Tag Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.27 ▼5.26
Dashboard /wp-admin3.39 ▲0.0948.47 ▼0.67
Posts /wp-admin/edit.php3.45 ▲0.0947.15 ▼2.13
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.92 ▼8.07
Media Library /wp-admin/upload.php3.32 ▲0.0936.20 ▲5.82

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_rpctwtabs
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Recent Popular Comment Tag Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.58 ▼0.815.40 ▲3.6538.51 ▼4.01
Dashboard /wp-admin2,209 ▲215.90 ▲0.02107.49 ▼10.7141.76 ▼3.08
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0539.33 ▲1.9336.26 ▲2.08
Add New Post /wp-admin/post-new.php1,542 ▲918.41 ▼4.61615.32 ▼48.6457.08 ▼5.19
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0896.07 ▼11.4541.51 ▼4.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_rpctwtabs
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-popular-comment-tag-widget/inc/rpctw_post_script.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2 in recent-popular-comment-tag-widget/assets to your readme.txt
The official readme.txt is a good inspiration

recent-popular-comment-tag-widget/recent-popular-comment-tag-widget.php Passed 13 tests

This is the main PHP file of "Recent Popular Comment Tag Widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
130 characters long description:
Enables advanced widget that gives you total control over the output of your site’s recent posts, popular posts, comments, tags.

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
No dangerous file extensions were detected3,167 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP27448347
CSS2113126
JavaScript16023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity8.67
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/thumb-medium-empty.png4.95KB1.39KB▼ 71.82%