84% tag-limiter

Code Review | Wp LimitTags

WordPress plugin Wp LimitTags scored84%from 54 tests.

About plugin

  • Plugin page: tag-limiter
  • Plugin version: 2.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2019
  • Latest release: Mar 24, 2019
  • Number of updates: 12
  • Update frequency: every 6.0 days
  • Top authors: meumairakram (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /756 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.00MB] [CPU: ▼3.76ms] Passed 4 tests

A check of server-side resources used by Wp LimitTags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.11 ▲6.65
Dashboard /wp-admin3.32 ▼0.0350.53 ▼14.36
Posts /wp-admin/edit.php3.37 ▲0.0149.32 ▼0.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.44 ▼6.55
Media Library /wp-admin/upload.php3.24 ▲0.0139.83 ▲7.24
WP Tag Limiter /wp-admin/options-general.php?page=co-wp-tag-limiter3.2130.23

Server storage [IO: ▲0.00MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Wp LimitTags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.27 ▲0.271.70 ▼0.3744.08 ▼3.28
Dashboard /wp-admin2,196 ▲195.57 ▼0.1091.05 ▲3.6240.86 ▼8.45
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0741.47 ▲3.4736.84 ▼1.52
Add New Post /wp-admin/post-new.php1,529 ▲323.13 ▼0.00692.15 ▼12.4154.81 ▼0.88
Media Library /wp-admin/upload.php1,401 ▲14.24 ▲0.0198.38 ▼6.1245.44 ▼0.81
WP Tag Limiter /wp-admin/options-general.php?page=co-wp-tag-limiter8061.9625.8529.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-limiter/wp-tags-limiter.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tag-limiter/functions.php:4

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: tags, tags limiter, limit tags

tag-limiter/wp-tags-limiter.php 92% from 13 tests

"Wp LimitTags" version 2.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tag-limiter.php" instead of "wp-tags-limiter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected87 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181179
Markdown1508

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin