84% simple-tags-by-category

Code Review | Simple Tag By Category

WordPress plugin Simple Tag By Category scored84%from 54 tests.

About plugin

  • Plugin page: simple-tags-by-ca...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 6, 2016
  • Latest release: Aug 6, 2016
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: harshsoni_w3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.47ms] Passed 4 tests

Analyzing server-side resources used by Simple Tag By Category
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.87 ▼2.44
Dashboard /wp-admin3.33 ▲0.0247.46 ▼4.07
Posts /wp-admin/edit.php3.38 ▲0.0243.08 ▼1.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.97 ▼13.57
Media Library /wp-admin/upload.php3.25 ▲0.0237.01 ▲2.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_wpb_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Tag By Category
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.184.31 ▲2.3744.01 ▼1.81
Dashboard /wp-admin2,206 ▲174.82 ▼1.11102.44 ▲1.1638.27 ▼0.07
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0334.11 ▼7.0634.35 ▼0.68
Add New Post /wp-admin/post-new.php1,533 ▼923.34 ▲5.28681.28 ▲75.0558.02 ▼0.15
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.1196.77 ▼0.6242.76 ▲0.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_wpb_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-tags-by-category/Tag.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: widget, categort widget, tags, tag by category, tag

simple-tags-by-category/Tag.php 92% from 13 tests

"Simple Tag By Category" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-tags-by-category.php" instead of "Tag.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1152187

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin