90% wen-skill-charts

Code Review | WEN Skill Charts

WordPress plugin WEN Skill Charts scored90%from 54 tests.

About plugin

  • Plugin page: wen-skill-charts
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2015
  • Latest release: Aug 24, 2022
  • Number of updates: 21
  • Update frequency: every 129.7 days
  • Top authors: wenthemes (71.43%)WEN Solutions (23.81%)wptravel (14.29%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /27,511 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼1.23ms] Passed 4 tests

Analyzing server-side resources used by WEN Skill Charts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2446.53 ▲2.85
Dashboard /wp-admin3.53 ▲0.2346.05 ▼6.73
Posts /wp-admin/edit.php3.64 ▲0.2945.37 ▲1.20
Add New Post /wp-admin/post-new.php6.12 ▲0.2384.29 ▼1.29
Media Library /wp-admin/upload.php3.45 ▲0.2236.45 ▲1.89
Add New /wp-admin/post-new.php?post_type=wen_skill3.4942.54
All Skills /wp-admin/edit.php?post_type=wen_skill3.5037.31

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WEN Skill Charts: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18513.95 ▼0.427.90 ▲6.0737.34 ▼10.47
Dashboard /wp-admin2,236 ▲515.87 ▲0.9597.06 ▼14.6735.83 ▼6.28
Posts /wp-admin/edit.php2,116 ▲272.03 ▲0.0334.56 ▼2.6135.22 ▲0.12
Add New Post /wp-admin/post-new.php1,559 ▲1923.23 ▼0.01661.69 ▼5.9959.35 ▲7.97
Media Library /wp-admin/upload.php1,415 ▲244.18 ▲0.0394.10 ▼6.6042.59 ▼0.07
Add New /wp-admin/post-new.php?post_type=wen_skill2,2563.4099.5261.96
All Skills /wp-admin/edit.php?post_type=wen_skill1,1071.9631.6229.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #2 (Add New Circle) image required
You can take inspiration from this readme.txt

wen-skill-charts/wen-skill-charts.php Passed 13 tests

The principal PHP file in "WEN Skill Charts" v. 1.5.2 is loaded by WordPress automatically on each request
35 characters long description:
Show animated skill bar and circle.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,599 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP12297688843
JavaScript782100404
CSS23425352

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.89
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4488.00%
▷ Protected methods00.00%
▷ Private methods612.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/dragger.png3.06KB0.30KB▼ 90.05%
admin/images/cross.png0.67KB0.64KB▼ 4.93%