90% display-terms-shortcode

Code Review | Display Terms Shortcode

WordPress plugin Display Terms Shortcode scored90%from 54 tests.

About plugin

  • Plugin page: display-terms-sho...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2017
  • Latest release: Aug 11, 2019
  • Number of updates: 12
  • Update frequency: every 61.0 days
  • Top authors: seothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,107 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Display Terms Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.09 ▲0.99
Dashboard /wp-admin3.33 ▲0.0350.29 ▲1.50
Posts /wp-admin/edit.php3.38 ▲0.0349.11 ▼0.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.90 ▼2.50
Media Library /wp-admin/upload.php3.25 ▲0.0332.97 ▲0.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Display Terms Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.60 ▲0.221.98 ▲0.0242.83 ▼0.67
Dashboard /wp-admin2,195 ▲185.62 ▼0.0286.06 ▲1.8337.80 ▼6.47
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0039.59 ▼0.2436.22 ▼0.73
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▼0.04661.60 ▼28.4356.90 ▲1.86
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.0893.07 ▼17.3342.24 ▼5.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: list, categories, tags, shortcode, terms

display-terms-shortcode/display-terms-shortcode.php Passed 13 tests

The entry point to "Display Terms Shortcode" version 1.0.4 is a PHP file that has certain tags in its header comment area
60 characters long description:
Display a list of terms using the [display-terms] shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin228 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1300115
PHP11722113

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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
Namespaces1
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin