10% tags-all-in-one

Code Review | Tags all in one

WordPress plugin Tags all in one scored10%from 54 tests.

About plugin

  • Plugin page: tags-all-in-one
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Dec 16, 2015
  • Number of updates: 36
  • Update frequency: every 18.5 days
  • Top authors: teastudio.pl (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,979 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/tags-all-in-one/tags-widget.class.php+144
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.84ms] Passed 4 tests

A check of server-side resources used by Tags all in one
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.59 ▼34.51
Dashboard /wp-admin2.09 ▼1.2211.15 ▼45.37
Posts /wp-admin/edit.php2.09 ▼1.277.34 ▼52.41
Add New Post /wp-admin/post-new.php2.09 ▼3.807.62 ▼90.67
Media Library /wp-admin/upload.php2.09 ▼1.146.83 ▼34.92

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_tags_all_in_one

Browser metrics Passed 4 tests

An overview of browser requirements for Tags all in one
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.64 ▲0.201.75 ▼0.0543.48 ▲0.12
Dashboard /wp-admin2,213 ▲224.90 ▲0.01101.57 ▼1.7138.64 ▼5.56
Posts /wp-admin/edit.php2,096 ▲42.03 ▲0.0540.34 ▼0.4034.67 ▼1.98
Add New Post /wp-admin/post-new.php1,518 ▼1023.49 ▲5.19664.19 ▼4.5952.10 ▼6.23
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0298.67 ▼12.8043.89 ▼2.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/tags-all-in-one/tags-widget.class.php+144
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_tags_all_in_one
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Widget configuration), #2 (Shortcode generator), #3 (WYSIWYG button)
You can take inspiration from this readme.txt

tags-all-in-one/tags-all-in-one.php Passed 13 tests

"Tags all in one" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
Display tags cloud for selected post types by widget or display tags cloud for current post by shortcode generator.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected787 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP785129492
CSS1250131
PO File1343794
JavaScript41770

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.20
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods22
▷ Static methods1045.45%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.89KB8.74KB▼ 53.74%
screenshot-2.png49.99KB18.81KB▼ 62.37%
screenshot-3.png20.42KB9.63KB▼ 52.84%
images/shortcode-icon.png0.88KB0.79KB▼ 11.16%
images/teastudio-logo.png4.23KB2.93KB▼ 30.76%