83% achievement-shortcode-add-on-for-gamipress

Code Review | Achievement Shortcode Add-On for GamiPress

WordPress plugin Achievement Shortcode Add-On for GamiPress scored83%from 54 tests.

About plugin

  • Plugin page: achievement-short...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.5.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 29, 2020
  • Latest release: Oct 29, 2020
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: konnektiv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /530 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
Installer ran successfully

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

Server-side resources used by Achievement Shortcode Add-On for GamiPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.04 ▼6.10
Dashboard /wp-admin3.31 ▲0.0047.14 ▼0.07
Posts /wp-admin/edit.php3.36 ▲0.0048.39 ▲1.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.67 ▼3.14
Media Library /wp-admin/upload.php3.23 ▲0.0032.92 ▼1.66

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Achievement Shortcode Add-On for GamiPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.34 ▼1.252.29 ▲0.4740.89 ▼7.34
Dashboard /wp-admin2,209 ▲214.86 ▼1.00112.20 ▲14.0842.41 ▼5.12
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0039.94 ▲3.6536.72 ▲4.45
Add New Post /wp-admin/post-new.php1,520 ▲623.25 ▲5.66649.64 ▲41.1650.70 ▼12.55
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0196.01 ▼2.4341.38 ▼2.03

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/achievement-shortcode-add-on-for-gamipress/gamipress-achievement-shortcode.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
Please take inspiration from this readme.txt

achievement-shortcode-add-on-for-gamipress/gamipress-achievement-shortcode.php 85% from 13 tests

The principal PHP file in "Achievement Shortcode Add-On for GamiPress" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("achievement-shortcode-add-on-for-gamipress.php" instead of "gamipress-achievement-shortcode.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin452 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript28853339
PHP12749103
JSON10010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin