83% keywords-cloud

Code Review | Keywords Cloud

WordPress plugin Keywords Cloud scored83%from 54 tests.

About plugin

  • Plugin page: keywords-cloud
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Dec 16, 2021
  • Latest release: Dec 19, 2021
  • Number of updates: 11
  • Update frequency: every 0.4 days
  • Top authors: alialhoasy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.12ms] Passed 4 tests

A check of server-side resources used by Keywords Cloud
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.40 ▼7.68
Dashboard /wp-admin3.38 ▲0.0349.57 ▼17.63
Posts /wp-admin/edit.php3.43 ▲0.0750.84 ▲4.57
Add New Post /wp-admin/post-new.php5.96 ▲0.0799.84 ▼2.76
Media Library /wp-admin/upload.php3.30 ▲0.0743.75 ▲3.58

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_keywords-cloud-widget
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Keywords Cloud
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.41 ▼0.569.30 ▲7.5339.26 ▼5.54
Dashboard /wp-admin2,189 ▲95.55 ▼0.1097.63 ▼2.5640.67 ▼0.97
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0337.64 ▲0.0533.40 ▼4.93
Add New Post /wp-admin/post-new.php1,537 ▲1018.15 ▼5.00659.76 ▼5.5574.14 ▲18.66
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.0499.44 ▼11.6142.40 ▼4.71

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_keywords-cloud-widget

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at 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/keywords-cloud/keywords-cloud.php:17

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 errors were detected

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
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4 in keywords-cloud/assets to your readme.txt
The official readme.txt is a good inspiration

keywords-cloud/keywords-cloud.php 92% from 13 tests

"Keywords Cloud" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected509 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP13619156
JavaScript231032
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity11.33
▷ Minimum method complexity3.00
▷ Maximum method complexity21.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 functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.59MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png15.04KB6.49KB▼ 56.86%
assets/banner-772x250.png67.54KB26.96KB▼ 60.08%
assets/icon-256x256.png43.33KB19.53KB▼ 54.91%
assets/screenshot-1.png123.28KB56.81KB▼ 53.92%
assets/screenshot-3.png114.58KB56.85KB▼ 50.38%