78% skill-bar-wp

Code Review | Skill Bar WP

WordPress plugin Skill Bar WP scored78%from 54 tests.

About plugin

  • Plugin page: skill-bar-wp
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 25, 2021
  • Latest release: Jul 9, 2023
  • Number of updates: 9
  • Update frequency: every 62.4 days
  • Top authors: wpfound (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Skill Bar WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.47 ▼2.05
Dashboard /wp-admin3.41 ▲0.1157.96 ▲5.70
Posts /wp-admin/edit.php3.46 ▲0.1156.00 ▲3.77
Add New Post /wp-admin/post-new.php6.02 ▲0.13108.42 ▲10.68
Media Library /wp-admin/upload.php3.33 ▲0.1141.92 ▲4.10
Add New /wp-admin/post-new.php?post_type=skillbar3.3445.73
All Skill Bar /wp-admin/edit.php?post_type=skillbar3.3834.68

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Skill Bar WP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18613.93 ▼0.445.66 ▲3.8640.11 ▼6.65
Dashboard /wp-admin2,250 ▲625.07 ▲0.18112.56 ▲5.3241.30 ▲1.13
Posts /wp-admin/edit.php2,141 ▲522.34 ▲0.3039.13 ▲4.3832.66 ▼4.27
Add New Post /wp-admin/post-new.php1,570 ▲3723.21 ▼0.06680.82 ▲40.4635.17 ▼15.41
Media Library /wp-admin/upload.php1,435 ▲474.58 ▲0.34116.54 ▲17.2949.23 ▲3.30
Add New /wp-admin/post-new.php?post_type=skillbar2,6233.1894.19103.74
All Skill Bar /wp-admin/edit.php?post_type=skillbar1,0992.3834.2029.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=skillbar
    • > Notice in wp-content/plugins/skill-bar-wp/admin/settings.php+19
    Undefined index: skill_title_font_size

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
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skill-bar-wp/admin/admin-scripts.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/skill-bar-wp/inc/style.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skill-bar-wp/admin/skill-metabox.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: progress bar, skill bar, skill bars

skill-bar-wp/index.php 77% from 13 tests

The main file in "Skill Bar WP" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 505 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("skill-bar-wp.php" instead of "index.php")

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
There were no executable files found in this plugin6,115 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
SVG2002,959
CSS348202,531
PHP1019696484
JavaScript33038141

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin