83% cwm-stylish-author-widget

Code Review | CWM Stylish Author Widget

WordPress plugin CWM Stylish Author Widget scored83%from 54 tests.

About plugin

  • Plugin page: cwm-stylish-autho...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.4.1
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: May 12, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: mehedi_csit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.62ms] Passed 4 tests

An overview of server-side resources used by CWM Stylish Author Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.53 ▼2.68
Dashboard /wp-admin3.40 ▲0.1052.58 ▼5.59
Posts /wp-admin/edit.php3.52 ▲0.1654.79 ▲1.91
Add New Post /wp-admin/post-new.php5.98 ▲0.1092.76 ▼8.12
Media Library /wp-admin/upload.php3.31 ▲0.0840.92 ▲2.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CWM Stylish Author Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17714.73 ▲0.361.57 ▼0.1042.46 ▼3.07
Dashboard /wp-admin2,339 ▲1626.16 ▲0.56118.05 ▲17.4037.31 ▼6.69
Posts /wp-admin/edit.php2,264 ▲1613.31 ▲1.2755.98 ▲19.1836.16 ▼1.50
Add New Post /wp-admin/post-new.php1,530 ▲223.16 ▼0.11646.76 ▼26.7435.99 ▼25.77
Media Library /wp-admin/upload.php1,404 ▲14.20 ▼0.0483.58 ▼20.7444.41 ▼2.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_cwm-stylish-author-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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cwm-stylish-author-widget/stylish-blogs-sidebar-about-me.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in cwm-stylish-author-widget/assets to your readme.txt
Please take inspiration from this readme.txt

cwm-stylish-author-widget/stylish-blogs-sidebar-about-me.php 85% from 13 tests

The main PHP script in "CWM Stylish Author Widget" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cwm-stylish-author-widget.php" instead of "stylish-blogs-sidebar-about-me.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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
Success! There were no dangerous files found in this plugin17,622 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,299
CSS163,642638,118
PHP21630168
JavaScript10037

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity9.40
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin