89% tags-limit-wp-and-woocommerce

Code Review | Tags Limit WP and WooCommerce

WordPress plugin Tags Limit WP and WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: tags-limit-wp-and...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 12, 2018
  • Latest release: Mar 12, 2018
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: wpentire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /531 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
Install script ran successfully

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

This is a short check of server-side resources used by Tags Limit WP and WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.46 ▼6.55
Dashboard /wp-admin3.32 ▲0.0246.32 ▼1.45
Posts /wp-admin/edit.php3.37 ▲0.0141.88 ▼5.96
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.86 ▼4.18
Media Library /wp-admin/upload.php3.24 ▲0.0132.71 ▼2.94

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Tags Limit WP and WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.051.84 ▲0.0344.46 ▲1.50
Dashboard /wp-admin2,209 ▲214.83 ▼1.03101.03 ▼13.2039.79 ▼0.97
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0537.03 ▲0.0433.44 ▲0.52
Add New Post /wp-admin/post-new.php1,544 ▲1118.49 ▼4.68627.81 ▼37.5452.14 ▼17.04
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0898.03 ▲2.0344.25 ▲1.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: Please take inspiration from this readme.txt

tags-limit-wp-and-woocommerce/tags-limit-wp.php 77% from 13 tests

The entry point to "Tags Limit WP and WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tags-limit-wp-and-woocommerce.php" instead of "tags-limit-wp.php")
  • Domain Path: The domain path folder does not exist ("/languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 313 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2142284

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin