84% wc-widgets

Code Review | WP Canvas - Widgets

WordPress plugin WP Canvas - Widgets scored84%from 54 tests.

About plugin

  • Plugin page: wc-widgets
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.3
  • WordPress version: 6.3.1
  • First release: Nov 15, 2013
  • Latest release: Sep 8, 2015
  • Number of updates: 15
  • Update frequency: every 44.1 days
  • Top authors: cbaldelomar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /27,538 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.54ms] Passed 4 tests

Analyzing server-side resources used by WP Canvas - Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.45 ▼4.47
Dashboard /wp-admin3.33 ▲0.0343.60 ▼2.05
Posts /wp-admin/edit.php3.38 ▲0.0244.30 ▼10.06
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.48 ▼5.57
Media Library /wp-admin/upload.php3.25 ▲0.0233.60 ▼1.47

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_wordpresscanvas_pinterest
widget_wordpresscanvas_about_me
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_image

Browser metrics Passed 4 tests

Checking browser requirements for WP Canvas - Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.081.86 ▲0.0242.26 ▼4.58
Dashboard /wp-admin2,209 ▲215.86 ▲0.9597.18 ▼8.9442.75 ▼2.20
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0243.04 ▲6.8734.21 ▲1.76
Add New Post /wp-admin/post-new.php1,533 ▼023.47 ▲0.13684.81 ▲9.1253.18 ▲3.63
Media Library /wp-admin/upload.php1,391 ▼04.26 ▲0.0899.51 ▼2.4742.82 ▼1.90

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_wordpresscanvas_pinterest
    • widget_image
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_wordpresscanvas_about_me

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-widgets/includes/scripts.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-widgets/includes/scripts.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-widgets/includes/widgets.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: pinterest widget, wordpress canvas widgets, image widget, about me widget

wc-widgets/wc-widgets.php Passed 13 tests

The main PHP file in "WP Canvas - Widgets" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Add much needed widgets to your blog. Pinterest Widget, About Me Widget, Image Widget.

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
Good job! No executable or dangerous file extensions detected507 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP46245287
JavaScript13219150
Markdown141056
CSS12014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity8.00
▷ Maximum class complexity16.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin