84% groovy-fitness-shortcodes

Code Review | Groovy Fitness Shortcodes

WordPress plugin Groovy Fitness Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: groovy-fitness-sh...
  • Plugin version: 2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2018
  • Latest release: Oct 10, 2023
  • Number of updates: 5
  • Update frequency: every 397.8 days
  • Top authors: kayleighthorpe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.67ms] Passed 4 tests

Server-side resources used by Groovy Fitness Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.21 ▼12.36
Dashboard /wp-admin3.35 ▲0.0543.79 ▼4.82
Posts /wp-admin/edit.php3.40 ▲0.0448.40 ▲2.19
Add New Post /wp-admin/post-new.php5.93 ▲0.0478.93 ▼19.43
Media Library /wp-admin/upload.php3.27 ▲0.0433.89 ▲1.95
Groovy Fitness Shortcodes /wp-admin/options-general.php?page=groovy-fitness-shortcodes3.2435.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Groovy Fitness Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.021.58 ▼0.2037.09 ▼6.43
Dashboard /wp-admin2,199 ▲195.67 ▲0.0197.08 ▲7.7642.07 ▲2.50
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.0140.64 ▲6.7737.46 ▼1.00
Add New Post /wp-admin/post-new.php1,529 ▼1023.47 ▲0.26651.76 ▲5.9949.82 ▼14.06
Media Library /wp-admin/upload.php1,398 ▲44.22 ▲0.0197.51 ▲1.6840.10 ▼1.97
Groovy Fitness Shortcodes /wp-admin/options-general.php?page=groovy-fitness-shortcodes9481.9624.1930.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • fitbitrefreshtoken
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • fitbitaccesstoken
    • can_compress_scripts
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/groovy-fitness-shortcodes/admin-menu.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/groovy-fitness-shortcodes/admin-menu.php:6

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

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

groovy-fitness-shortcodes/groovy-fitness-shortcodes.php Passed 13 tests

The main file in "Groovy Fitness Shortcodes" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
A plugin to put your Fitbit data into handy shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected207 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP216923207

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin