10% cancanit-review-widget

Code Review | CancanIT Review Widget

WordPress plugin CancanIT Review Widget scored10%from 54 tests.

About plugin

  • Plugin page: cancanit-review-w...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2013
  • Latest release: Jul 23, 2013
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: Cancanit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /970 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
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/cancanit-review-widget/cancanit-review-widget.php+34
    Methods with the same name as their class will not be constructors in a future version of PHP; CRWidget has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼51.72ms] Passed 4 tests

An overview of server-side resources used by CancanIT Review Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.374.41 ▼30.83
Dashboard /wp-admin2.12 ▼1.235.66 ▼52.66
Posts /wp-admin/edit.php2.12 ▼1.245.99 ▼40.50
Add New Post /wp-admin/post-new.php2.12 ▼3.775.42 ▼82.90
Media Library /wp-admin/upload.php2.12 ▼1.116.70 ▼26.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CancanIT Review Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.221.62 ▲0.0738.26 ▼5.06
Dashboard /wp-admin2,198 ▲245.51 ▼0.1581.80 ▼3.8738.33 ▼0.97
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0038.97 ▲1.6936.98 ▲3.69
Add New Post /wp-admin/post-new.php1,526 ▼623.01 ▼0.06681.08 ▲25.1453.04 ▼3.75
Media Library /wp-admin/upload.php1,397 ▼64.26 ▲0.07102.30 ▲3.8045.77 ▲2.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/cancanit-review-widget/cancanit-review-widget.php+34
    Methods with the same name as their class will not be constructors in a future version of PHP; CRWidget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_cancanit-widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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 SRP test was a success

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

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Screenshot Options), #2 (Screenshot Widget)
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt is a good inspiration

cancanit-review-widget/cancanit-review-widget.php 92% from 13 tests

The main PHP file in "CancanIT Review Widget" ver. 1... adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")

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 plugin160 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13852145
CSS30015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity2.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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widprev_da.png2.13KB2.09KB▼ 1.74%
widstsp.png6.27KB3.48KB▼ 44.48%
widprev_de.png2.38KB2.34KB▼ 1.72%
screenshot-2.png2.28KB2.25KB▼ 1.67%
widhead.png0.84KB0.79KB▼ 6.05%