10% shop-ajax-tags-dropdown

Code Review | Shop Ajax Tags Dropdown

WordPress plugin Shop Ajax Tags Dropdown scored 10% from 54 tests.

About plugin

  • Plugin page: shop-ajax-tags-dr...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Nov 13, 2016
  • Latest release: Nov 15, 2016
  • Number of updates: 12
  • Update frequency: every 6.3 days
  • Top authors: alexhal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 414 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/shop-ajax-tags-dropdown/shop-ajax-tags.php+133
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼195.25ms] Passed 4 tests

Server-side resources used by Shop Ajax Tags Dropdown
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼1.095.18 ▼26.75
Dashboard /wp-admin1.76 ▼1.294.56 ▼43.33
Posts /wp-admin/edit.php1.76 ▼1.357.02 ▼40.74
Add New Post /wp-admin/post-new.php1.76 ▼3.676.77 ▼668.26
Media Library /wp-admin/upload.php1.76 ▼1.247.34 ▼28.67

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
widget_shopajaxtagsdropdownwidget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shop Ajax Tags Dropdown
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲7016.42 ▲0.8412.75 ▲1.3451.66 ▲3.24
Dashboard /wp-admin2,967 ▲335.93 ▼0.23164.31 ▼8.89126.86 ▲14.85
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0165.40 ▼4.0397.12 ▼1.79
Add New Post /wp-admin/post-new.php1,615 ▼6821.50 ▲2.82289.91 ▼129.36105.34 ▼0.06
Media Library /wp-admin/upload.php1,810 ▲65.04 ▲0.02153.50 ▼98.50132.54 ▼26.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/shop-ajax-tags-dropdown/shop-ajax-tags.php+133
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_shopajaxtagsdropdownwidget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shop-ajax-tags-dropdown/shop-ajax-tags.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, dropdown, tags, widget

shop-ajax-tags-dropdown/shop-ajax-tags.php 92% from 13 tests

The main PHP file in "Shop Ajax Tags Dropdown" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("shop-ajax-tags-dropdown.php" instead of "shop-ajax-tags.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
Everything looks great! No dangerous files found in this plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11915100

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ 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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png46.72KB15.62KB▼ 66.57%
assets/screenshot-1.png65.73KB24.89KB▼ 62.13%