83% easy-category-cloud

Code Review | Easy Category Cloud

WordPress plugin Easy Category Cloud scored83%from 54 tests.

About plugin

  • Plugin page: easy-category-cloud
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: May 15, 2018
  • Latest release: Jun 27, 2018
  • Number of updates: 15
  • Update frequency: every 3.1 days
  • Top authors: emahajan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /759 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.65ms] Passed 4 tests

An overview of server-side resources used by Easy Category Cloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.70 ▼1.22
Dashboard /wp-admin3.31 ▼0.0347.76 ▼16.30
Posts /wp-admin/edit.php3.36 ▲0.0148.78 ▲0.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.30 ▼5.20
Media Library /wp-admin/upload.php3.23 ▲0.0140.00 ▲4.99

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Easy Category Cloud
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▲0.061.85 ▼0.2343.66 ▼2.61
Dashboard /wp-admin2,198 ▲345.62 ▲0.0892.97 ▼5.8839.19 ▼0.18
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0939.94 ▲4.2337.25 ▲1.33
Add New Post /wp-admin/post-new.php1,526 ▼1123.12 ▼0.13696.04 ▲9.4555.55 ▼2.84
Media Library /wp-admin/upload.php1,403 ▼04.15 ▲0.0499.71 ▼1.0446.18 ▲1.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-category-cloud/easy-category-cloud.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easy-category-cloud/easy-category-cloud.php:13

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 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (18 tag instead of maximum 10)
  • Screenshots: These screenshots require images: #1 (It shows the default view of 'Easy Category Cloud' enabled page.), #2 (It shows the default view of 'Easy Category Cloud' enabled page with hover or selected sub category..)
You can take inspiration from this readme.txt

easy-category-cloud/easy-category-cloud.php Passed 13 tests

The entry point to "Easy Category Cloud" version 1.0.0 is a PHP file that has certain tags in its header comment area
78 characters long description:
This plugin shows category and sub categories cloud for your woocommerce shop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin370 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1150330
PHP1122640

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.61MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png33.67KB13.52KB▼ 59.83%
assets/screenshot-1.png38.21KB19.73KB▼ 48.35%
assets/screenshot-2.png47.75KB19.96KB▼ 58.19%
assets/banner-1544x500.png414.39KB210.78KB▼ 49.13%
screenshot-2.png47.75KB19.96KB▼ 58.19%