84% tag-selector

Code Review | Tag Selector

WordPress plugin Tag Selector scored84%from 54 tests.

About plugin

  • Plugin page: tag-selector
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Mar 2, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: robmarston (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /3,545 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.47ms] Passed 4 tests

This is a short check of server-side resources used by Tag Selector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.49 ▼3.49
Dashboard /wp-admin3.32 ▲0.0248.59 ▼8.01
Posts /wp-admin/edit.php3.38 ▲0.0151.45 ▲2.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.50 ▼10.35
Media Library /wp-admin/upload.php3.25 ▲0.0135.21 ▼4.03

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Tag Selector
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.53 ▲0.001.66 ▼0.4140.45 ▼3.31
Dashboard /wp-admin2,195 ▲175.56 ▼0.0890.02 ▼15.7738.10 ▼5.65
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0138.86 ▼0.0334.69 ▼0.11
Add New Post /wp-admin/post-new.php6,234 ▲4,70818.87 ▼4.25874.59 ▲205.6155.76 ▲5.93
Media Library /wp-admin/upload.php1,403 ▲34.27 ▲0.1397.79 ▲1.8943.91 ▼0.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 everything seems fine, this is not 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/tag-selector/tag-selector.php:100

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: meta box, post, taxonomy, tag, category

tag-selector/tag-selector.php 92% from 13 tests

Analyzing the main PHP file in "Tag Selector" version 1.0.0
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 157 characters long)

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
There were no executable files found in this plugin86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171086

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin