10% page-cloud-widget

Code Review | Powie's Page Cloud Widget

WordPress plugin Powie's Page Cloud Widget scored10%from 54 tests.

About plugin

  • Plugin page: page-cloud-widget
  • Plugin version: 0.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6.0
  • WordPress version: 6.3.1
  • First release: Jan 12, 2016
  • Latest release: Aug 25, 2016
  • Number of updates: 6
  • Update frequency: every 37.8 days
  • Top authors: PowieT (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /805 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/page-cloud-widget/page-cloud-widget.php+15
    Function create_function() is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼53.99ms] Passed 4 tests

Server-side resources used by Powie's Page Cloud Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.315.49 ▼37.18
Dashboard /wp-admin2.18 ▼1.137.30 ▼45.86
Posts /wp-admin/edit.php2.18 ▼1.187.03 ▼43.03
Add New Post /wp-admin/post-new.php2.18 ▼3.716.85 ▼89.88
Media Library /wp-admin/upload.php2.18 ▼1.057.12 ▼28.78

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_pagecloudwidget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Powie's Page Cloud Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.382.53 ▲0.9042.75 ▼0.91
Dashboard /wp-admin2,198 ▲215.66 ▼0.0185.43 ▼4.7937.06 ▼7.01
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0035.25 ▼1.5637.27 ▼1.14
Add New Post /wp-admin/post-new.php1,526 ▼323.38 ▼0.06667.93 ▼31.4755.36 ▲2.67
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.02110.85 ▲0.7948.68 ▼0.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/page-cloud-widget/page-cloud-widget.php+15
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_pagecloudwidget

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
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/page-cloud-widget/page-cloud-widget.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

page-cloud-widget/page-cloud-widget.php 92% from 13 tests

The entry point to "Powie's Page Cloud Widget" version 0.9.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin311 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1528243
PO File1293268

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.59KB9.53KB▼ 48.76%