84% gamipress-h5p-points-per-score

Code Review | GamiPress - H5P Points Per Score

WordPress plugin GamiPress - H5P Points Per Score scored84%from 54 tests.

About plugin

  • Plugin page: gamipress-h5p-poi...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Apr 22, 2022
  • Latest release: Sep 4, 2023
  • Number of updates: 7
  • Update frequency: every 71.4 days
  • Top authors: rubengc (85.71%)dioni00 (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,852 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.05ms] Passed 4 tests

This is a short check of server-side resources used by GamiPress - H5P Points Per Score
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.42 ▲1.02
Dashboard /wp-admin3.33 ▲0.0247.59 ▼5.29
Posts /wp-admin/edit.php3.38 ▲0.0244.91 ▼3.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.70 ▼7.59
Media Library /wp-admin/upload.php3.25 ▲0.0234.18 ▼0.31

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - H5P Points Per Score
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.67 ▼0.621.72 ▲0.0344.22 ▲0.94
Dashboard /wp-admin2,223 ▲355.88 ▼0.03111.57 ▲6.4042.63 ▼0.54
Posts /wp-admin/edit.php2,109 ▲172.01 ▲0.0237.56 ▼0.1436.25 ▲3.40
Add New Post /wp-admin/post-new.php1,548 ▲623.16 ▲4.92660.69 ▲7.3450.01 ▼7.89
Media Library /wp-admin/upload.php1,411 ▲234.23 ▲0.0197.46 ▲0.8245.82 ▲2.95

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 no errors were found, this is by no means an exhaustive test

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-h5p-points-per-score/gamipress-h5p-points-per-score.php:224

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

gamipress-h5p-points-per-score/gamipress-h5p-points-per-score.php Passed 13 tests

The main file in "GamiPress - H5P Points Per Score" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
Award points based on the user score in H5P.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin206 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP481178194
JavaScript24112

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.39
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin