78% azurecurve-tag-cloud

Code Review | azurecurve Tag Cloud

WordPress plugin azurecurve Tag Cloud scored78%from 54 tests.

About plugin

  • Plugin page: azurecurve-tag-cloud
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Dec 6, 2018
  • Number of updates: 21
  • Update frequency: every 69.1 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /8,541 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.30ms] Passed 4 tests

Server-side resources used by azurecurve Tag Cloud
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1243.23 ▲5.19
Dashboard /wp-admin3.42 ▲0.0845.82 ▼9.92
Posts /wp-admin/edit.php3.53 ▲0.1846.24 ▲0.91
Add New Post /wp-admin/post-new.php6.00 ▲0.1281.57 ▼14.86
Media Library /wp-admin/upload.php3.34 ▲0.1136.40 ▲2.68
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.3129.67
Tag Cloud /wp-admin/admin.php?page=azc-tc3.2829.58

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
azc_tc_options
widget_theysaidso_widget
widget_azurecurve_tag_cloud
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for azurecurve Tag Cloud
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.62 ▼0.751.61 ▼0.1442.88 ▼0.98
Dashboard /wp-admin2,239 ▲514.88 ▼1.0096.18 ▼13.0566.53 ▲22.98
Posts /wp-admin/edit.php2,116 ▲272.02 ▼0.0233.54 ▼2.9531.29 ▼1.40
Add New Post /wp-admin/post-new.php1,545 ▲823.31 ▲0.03709.45 ▲46.2363.84 ▲7.38
Media Library /wp-admin/upload.php1,415 ▲274.22 ▲0.02103.30 ▲4.1374.47 ▲28.48
Plugins /wp-admin/admin.php?page=azc-plugin-menus8522.0223.9828.96
Tag Cloud /wp-admin/admin.php?page=azc-tc1,0432.0523.3126.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_azurecurve_tag_cloud
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=azc-tc
    • > Notice in wp-content/plugins/azurecurve-tag-cloud/azurecurve-tag-cloud.php+146
    Undefined index: include_exclude

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-tag-cloud/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-tag-cloud/includes/menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Plugin settings page.)
The official readme.txt is a good inspiration

azurecurve-tag-cloud/azurecurve-tag-cloud.php 92% from 13 tests

The main PHP file in "azurecurve Tag Cloud" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin661 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39973636
CSS20425

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%