84% namaste-lms-bridge-for-gamipress

Code Review | Namaste! LMS Bridge for GamiPress

WordPress plugin Namaste! LMS Bridge for GamiPress scored84%from 54 tests.

About plugin

  • Plugin page: namaste-lms-bridg...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 6, 2021
  • Latest release: Jan 6, 2021
  • Number of updates: 3
  • Update frequency: every 4.3 days
  • Top authors: prasunsen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /385 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.01MB] [CPU: ▼0.80ms] Passed 4 tests

Analyzing server-side resources used by Namaste! LMS Bridge for GamiPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.29 ▲6.58
Dashboard /wp-admin3.32 ▼0.0257.77 ▼8.66
Posts /wp-admin/edit.php3.37 ▲0.0252.02 ▲5.31
Add New Post /wp-admin/post-new.php5.90 ▲0.02101.03 ▲1.63
Media Library /wp-admin/upload.php3.24 ▲0.0139.33 ▼1.48

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Namaste! LMS Bridge for GamiPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17313.97 ▼0.415.56 ▲3.8240.30 ▼4.06
Dashboard /wp-admin2,221 ▲185.90 ▲1.04105.35 ▼10.6640.75 ▼10.54
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0742.00 ▲5.0235.23 ▼0.48
Add New Post /wp-admin/post-new.php1,532 ▼1323.35 ▲0.21678.04 ▲0.2268.94 ▲15.28
Media Library /wp-admin/upload.php1,400 ▼34.19 ▲0.05113.87 ▼4.5347.70 ▼1.09

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/namaste-lms-bridge-for-gamipress/namaste-gamipress.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: learning, gamipress, namaste-lms, gamification, lms

namaste-lms-bridge-for-gamipress/namaste-gamipress.php 85% from 13 tests

Analyzing the main PHP file in "Namaste! LMS Bridge for GamiPress" version 0.5
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("namaste-lms-bridge-for-gamipress.php" instead of "namaste-gamipress.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
No dangerous file extensions were detected137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34494137

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.50
▷ Minimum class complexity3.00
▷ Maximum class complexity20.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin