83% tag-lister

Code Review | Tag Lister

WordPress plugin Tag Lister scored83%from 54 tests.

About plugin

  • Plugin page: tag-lister
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2017
  • Latest release: Feb 26, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Wandering Aramean (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.87ms] Passed 4 tests

Analyzing server-side resources used by Tag Lister
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.89 ▼2.53
Dashboard /wp-admin3.33 ▼0.0153.68 ▼12.11
Posts /wp-admin/edit.php3.38 ▲0.0352.97 ▲0.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.16 ▼9.79
Media Library /wp-admin/upload.php3.25 ▲0.0340.58 ▲2.05

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Tag Lister: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.211.88 ▼0.3844.42 ▼0.00
Dashboard /wp-admin2,192 ▲185.65 ▼0.0592.59 ▼7.4640.15 ▼5.02
Posts /wp-admin/edit.php2,097 ▼02.06 ▲0.0539.39 ▲1.5534.87 ▼2.12
Add New Post /wp-admin/post-new.php1,550 ▲1923.36 ▲0.18669.43 ▼0.1255.74 ▼7.71
Media Library /wp-admin/upload.php1,394 ▼64.25 ▼0.01110.11 ▼1.3946.55 ▼0.83

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tag-lister/tag-lister.php:191

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)
No browser errors were detected

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
These attributes need your attention:
  • Screenshots: Add a description for screenshot #0 in tag-lister/assets to your readme.txt
  • Screenshots: Screenshot #3 (More advanced usage) image missing
  • Plugin Name: You should set the name of your plugin on the first line ( === tag-lister === )
You can look at the official readme.txt

tag-lister/tag-lister.php Passed 13 tests

"Tag Lister" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Easily embed a trip report index (or other list of commonly tagged posts) into another post

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
Success! There were no dangerous files found in this plugin108 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14441108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected