89% grassblade-xapi-gamipress

Code Review | Experience API for GamiPress by Grassblade

WordPress plugin Experience API for GamiPress by Grassblade scored89%from 54 tests.

About plugin

  • Plugin page: grassblade-xapi-g...
  • Plugin version: 1.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 12, 2019
  • Latest release: Jun 5, 2023
  • Number of updates: 23
  • Update frequency: every 55.3 days
  • Top authors: liveaspankaj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,200 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▼1.39ms] 75% from 4 tests

Analyzing server-side resources used by Experience API for GamiPress by Grassblade
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 3,516.13ms on /wp-admin/admin.php?page=grassblade-addons)
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2539.71 ▼4.56
Dashboard /wp-admin3.56 ▲0.2646.67 ▼1.27
Posts /wp-admin/edit.php3.67 ▲0.3248.17 ▲2.87
Add New Post /wp-admin/post-new.php6.14 ▲0.2596.11 ▼0.79
Media Library /wp-admin/upload.php3.48 ▲0.2538.55 ▲1.07
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings3.4334.27
GrassBlade GamiPress /wp-admin/admin.php?page=grassblade-gamipress3.4529.08
Add-ons /wp-admin/admin.php?page=grassblade-addons3.763,516.13

Server storage [IO: ▲0.09MB] [DB: ▲0.03MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options
grassblade_gamipress
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
grassblade_addons
grassblade_free_addons
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Experience API for GamiPress by Grassblade
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8613.64 ▼0.681.86 ▼0.1441.68 ▼11.27
Dashboard /wp-admin2,252 ▲644.87 ▼0.03103.59 ▼11.1770.54 ▲22.46
Posts /wp-admin/edit.php2,132 ▲461.98 ▼0.0439.54 ▲5.2237.43 ▲2.06
Add New Post /wp-admin/post-new.php1,552 ▲3317.69 ▼5.87730.27 ▲62.1855.22 ▼2.20
Media Library /wp-admin/upload.php1,422 ▲344.22 ▲0.06100.72 ▼1.9285.70 ▲43.79
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings8222.0526.0426.12
GrassBlade GamiPress /wp-admin/admin.php?page=grassblade-gamipress8402.0225.2825.85
Add-ons /wp-admin/admin.php?page=grassblade-addons2,8292.1927.2573.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 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
  • This plugin does not fully uninstall, leaving 9 options in the database
    • grassblade_addons
    • theysaidso_admin_options
    • grassblade_gamipress
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • grassblade_free_addons
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4 in grassblade-xapi-gamipress/assets to your readme.txt
Please take inspiration from this readme.txt

grassblade-xapi-gamipress/functions.php 85% from 13 tests

"Experience API for GamiPress by Grassblade" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("grassblade-xapi-gamipress.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin959 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3248152888
JavaScript1131071

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.67
Average class complexity77.33
▷ Minimum class complexity23.00
▷ Maximum class complexity116.00
Average method complexity6.59
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/no.png1.01KB0.62KB▼ 39.05%
img/icon_128x128.png22.67KB6.87KB▼ 69.71%
img/icon_30x30.png4.58KB1.60KB▼ 65.15%
img/check.png0.98KB0.47KB▼ 52.44%
img/icon-gb.png3.43KB0.84KB▼ 75.48%