10% um-jogging-platform

Code Review | Ultimate Member Jogging Platform

WordPress plugin Ultimate Member Jogging Platform scored10%from 54 tests.

About plugin

  • Plugin page: um-jogging-platform
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.31+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 26, 2018
  • Latest release: Jun 28, 2018
  • Number of updates: 10
  • Update frequency: every 0.7 days
  • Top authors: willemvanderveen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /859 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.20MB] [CPU: ▼7.17ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Member Jogging Platform
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2042.95 ▲1.38
Dashboard /wp-admin3.52 ▲0.1748.77 ▼13.69
Posts /wp-admin/edit.php3.64 ▲0.2847.99 ▼1.58
Add New Post /wp-admin/post-new.php6.10 ▲0.2185.75 ▼14.79
Media Library /wp-admin/upload.php3.44 ▲0.2135.71 ▲2.53
Uninstall UMJP /wp-admin/admin.php?page=uninstall3.4132.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: 1 new table, 7 new options
New tables
wp_jogging_data
New WordPress options
db_upgraded
widget_recent-posts
umjp_currentMonth
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Member Jogging Platform
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.051.70 ▼0.1741.53 ▼0.38
Dashboard /wp-admin2,206 ▲185.90 ▲1.0396.01 ▼8.8637.42 ▼5.63
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0338.21 ▼3.0233.52 ▼2.43
Add New Post /wp-admin/post-new.php1,514 ▼017.44 ▼0.04676.79 ▼8.7256.64 ▲2.66
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0196.05 ▼7.9740.51 ▼4.59
Uninstall UMJP /wp-admin/admin.php?page=uninstall7622.0224.1327.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_jogging_data
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • umjp_currentMonth
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/um-jogging-platform/umjp-init.php
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to get property 'progress' of non-object in wp-content/plugins/um-jogging-platform/templates/umjp-progress-chart-template.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_advice() on null in wp-content/plugins/um-jogging-platform/templates/umjp-advice-output-template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/um-jogging-platform/templates/umjp-progress-template.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_meta() in wp-content/plugins/um-jogging-platform/templates/umjp-enter-data-template.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_Leaderboards_data() on null in wp-content/plugins/um-jogging-platform/templates/umjp-leaderboards-template.php:4
    • > PHP Notice
      Trying to get property 'advice' of non-object in wp-content/plugins/um-jogging-platform/templates/umjp-advice-output-template.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/um-jogging-platform/templates/umjp-uninstall-template.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/um-jogging-platform/templates/umjp-profile-template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_data() on null in wp-content/plugins/um-jogging-platform/templates/umjp-progress-chart-template.php:4
    • > PHP Notice
      Trying to get property 'leaderboards' of non-object in wp-content/plugins/um-jogging-platform/templates/umjp-leaderboards-template.php on line 4

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

readme.txt Passed 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
5 plugin tags: ultimate member, running, social, health, jogging

um-jogging-platform/umjp-init.php 92% from 13 tests

"Ultimate Member Jogging Platform" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("um-jogging-platform.php" instead of "umjp-init.php")

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
Good job! No executable or dangerous file extensions detected3,606 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP25749652,055
CSS9270871,211
JavaScript613229340

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.07
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods69
▷ Static methods00.00%
▷ Public methods69100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected