84% post-tags-widget

Code Review | Post Tags Widget

WordPress plugin Post Tags Widget scored84%from 54 tests.

About plugin

  • Plugin page: post-tags-widget
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 31, 2019
  • Latest release: Feb 1, 2019
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: jfarthing84 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,039 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.02MB] [CPU: ▼3.62ms] Passed 4 tests

Analyzing server-side resources used by Post Tags Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.31 ▼7.55
Dashboard /wp-admin3.32 ▲0.0249.87 ▼9.10
Posts /wp-admin/edit.php3.37 ▲0.0253.86 ▲0.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.89 ▲1.68
Media Library /wp-admin/upload.php3.25 ▲0.0240.90 ▲6.38

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_post-tags-widget
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Tags Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.451.63 ▼0.1242.59 ▼1.15
Dashboard /wp-admin2,195 ▲215.64 ▲0.1186.77 ▼14.4041.99 ▼1.48
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0245.11 ▲6.8436.07 ▲1.46
Add New Post /wp-admin/post-new.php1,526 ▼223.59 ▲0.54672.62 ▼36.2257.25 ▼5.55
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.03102.37 ▼2.6246.12 ▼0.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_post-tags-widget
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-tags-widget/post-tags-widget.php:18

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: widget, tags, post tags

post-tags-widget/post-tags-widget.php Passed 13 tests

The principal PHP file in "Post Tags Widget" v. 1.0 is loaded by WordPress automatically on each request
46 characters long description:
Display tags for the current post in a widget.

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 detected44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1174944

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin