84% xili-tidy-tags

Code Review | xili-tidy-tags

WordPress plugin xili-tidy-tags scored84%from 54 tests.

About plugin

  • Plugin page: xili-tidy-tags
  • Plugin version: 1.12.04
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Mar 31, 2009
  • Latest release: Aug 1, 2023
  • Number of updates: 154
  • Update frequency: every 34.0 days
  • Top authors: michelwppi (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /44,865 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.39MB] [CPU: ▼14.13ms] Passed 4 tests

An overview of server-side resources used by xili-tidy-tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2740.86 ▲2.59
Dashboard /wp-admin3.85 ▲0.5037.99 ▼19.22
Posts /wp-admin/edit.php3.91 ▲0.5541.78 ▼3.60
Add New Post /wp-admin/post-new.php6.10 ▲0.2169.49 ▼33.11
Media Library /wp-admin/upload.php3.85 ▲0.6234.08 ▼0.57

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
xili_tidy_tags_settings
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_xili_tidy_tags_cloud_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for xili-tidy-tags
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11614.61 ▲0.251.91 ▲0.2443.80 ▲5.68
Dashboard /wp-admin2,281 ▲1015.66 ▲0.0489.51 ▲1.6255.17 ▲10.46
Posts /wp-admin/edit.php2,192 ▲922.30 ▲0.3145.98 ▲8.4634.19 ▼1.46
Add New Post /wp-admin/post-new.php1,560 ▲1123.26 ▲5.06721.98 ▲87.7356.59 ▼20.51
Media Library /wp-admin/upload.php1,480 ▲804.30 ▲0.10105.62 ▲6.0470.86 ▲26.19

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
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_xili_tidy_tags_cloud_widget
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • xili_tidy_tags_settings

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xili-tidy-tags/xili-includes/class-xili-tidy-tags-cloud-multiple-widgets.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/xili-tidy-tags/xili-tidy-tags.php:95
    • > PHP Fatal error
      Uncaught Error: Class 'Xili_Tidy_Tags' not found in wp-content/plugins/xili-tidy-tags/xili-includes/class-xili-tidy-tags-admin.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: posts, multilingual, tags, taxonomy, shortcode

xili-tidy-tags/xili-tidy-tags.php 92% from 13 tests

The primary PHP file in "xili-tidy-tags" version 1.12.04 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 201 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
Good job! No executable or dangerous file extensions detected11,273 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,9316,9166,264
PHP44816652,996
PO File36277501,596
CSS2336417

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity78.60
▷ Minimum class complexity2.00
▷ Maximum class complexity313.00
Average method complexity7.93
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods56
▷ Static methods00.00%
▷ Public methods56100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
13 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sort_desc.png0.15KB0.25KB0.00%
images/sort_desc_disabled.png0.14KB0.25KB0.00%
images/back_enabled_hover.png0.44KB0.60KB0.00%
images/xilitidy-logo-16.png0.67KB0.52KB▼ 21.61%
images/sort_asc.png0.16KB0.25KB0.00%