89% wplms-badgeos

Code Review | WPLMS BadgeOS

WordPress plugin WPLMS BadgeOS scored89%from 54 tests.

About plugin

  • Plugin page: wplms-badgeos
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Jul 17, 2015
  • Latest release: Dec 28, 2018
  • Number of updates: 8
  • Update frequency: every 158.8 days
  • Top authors: wpthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /49,389 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.71ms] Passed 4 tests

Analyzing server-side resources used by WPLMS BadgeOS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.22 ▼0.89
Dashboard /wp-admin3.31 ▲0.0047.03 ▼9.32
Posts /wp-admin/edit.php3.36 ▲0.0050.04 ▼1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.72 ▼11.36
Media Library /wp-admin/upload.php3.23 ▲0.0036.27 ▲0.35

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

WPLMS BadgeOS: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲2414.36 ▲0.011.88 ▲0.0540.88 ▼5.54
Dashboard /wp-admin2,195 ▲155.63 ▼0.0488.52 ▼1.0036.99 ▼7.28
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0038.74 ▲3.5635.57 ▲1.30
Add New Post /wp-admin/post-new.php1,526 ▼523.63 ▲0.62673.63 ▲21.6252.48 ▼2.87
Media Library /wp-admin/upload.php1,403 ▲94.19 ▼0.0195.19 ▼5.5551.21 ▲4.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: badgeos, courses, badges, lms, learning management

wplms-badgeos/badgeos-wplms.php 85% from 13 tests

The main file in "WPLMS BadgeOS" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wplms-badgeos.php" instead of "badgeos-wplms.php")

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
There were no executable files found in this plugin415 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP187133318
Markdown133049
JavaScript113748

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity81.00
▷ Minimum class complexity81.00
▷ Maximum class complexity81.00
Average method complexity6.33
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin