62% gym-master-components

Code Review | Gym Master Components - Essential Features For Gym Master Theme

WordPress plugin Gym Master Components - Essential Features For Gym Master Theme scored62%from 54 tests.

About plugin

  • Plugin page: gym-master-compon...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Jun 5, 2019
  • Latest release: Mar 16, 2021
  • Number of updates: 4
  • Update frequency: every 167.5 days
  • Top authors: WpGaint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /905 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼40.00ms] Passed 4 tests

A check of server-side resources used by Gym Master Components - Essential Features For Gym Master Theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.05 ▼0.4215.22 ▼27.01
Dashboard /wp-admin3.07 ▼0.2319.89 ▼27.95
Posts /wp-admin/edit.php3.07 ▼0.2918.89 ▼32.16
Add New Post /wp-admin/post-new.php3.07 ▼2.8217.12 ▼72.88
Media Library /wp-admin/upload.php3.07 ▼0.1618.21 ▼13.41
All Testimonial /wp-admin/edit.php?post_type=testimonials3.0818.24
Add Testimonial /wp-admin/post-new.php?post_type=testimonials3.0717.93
Add New /wp-admin/post-new.php?post_type=services3.0719.59
Add Pricing Table /wp-admin/post-new.php?post_type=pricing3.0718.61
Team Categories /wp-admin/edit-tags.php?taxonomy=team-categories&post_type=teams3.0816.99
Services Categories /wp-admin/edit-tags.php?taxonomy=services-category&post_type=services3.0818.24
All Teams /wp-admin/edit.php?post_type=teams3.0817.79
Testimonials Categories /wp-admin/edit-tags.php?taxonomy=testimonials-categories&post_type=testimonials3.0818.31
Add Team /wp-admin/post-new.php?post_type=teams3.0717.64
All Post /wp-admin/edit.php?post_type=services3.0819.13

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Gym Master Components - Essential Features For Gym Master Theme: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,065 ▲30814.00 ▼0.415.04 ▲2.8538.72 ▼12.12
Dashboard /wp-admin2,351 ▲1634.90 ▲0.01102.37 ▼12.1541.12 ▼2.27
Posts /wp-admin/edit.php2,233 ▲1442.11 ▲0.0841.58 ▲4.0537.40 ▲2.96
Add New Post /wp-admin/post-new.php1,634 ▲10123.36 ▲0.21592.01 ▼91.0460.25 ▲5.21
Media Library /wp-admin/upload.php1,533 ▲1454.27 ▲0.0695.12 ▼2.8344.42 ▲2.23
All Testimonial /wp-admin/edit.php?post_type=testimonials1,2141.9952.1831.36
Add Testimonial /wp-admin/post-new.php?post_type=testimonials2,4367.84177.9066.64
Add New /wp-admin/post-new.php?post_type=services6,49420.00810.6137.02
Add Pricing Table /wp-admin/post-new.php?post_type=pricing1,8262.5953.8765.46
Team Categories /wp-admin/edit-tags.php?taxonomy=team-categories&post_type=teams1,4042.3329.7631.28
Services Categories /wp-admin/edit-tags.php?taxonomy=services-category&post_type=services1,4102.3328.1030.73
All Teams /wp-admin/edit.php?post_type=teams1,2141.9934.2633.25
Testimonials Categories /wp-admin/edit-tags.php?taxonomy=testimonials-categories&post_type=testimonials1,4102.3329.5934.14
Add Team /wp-admin/post-new.php?post_type=teams2,5267.75165.6759.24
All Post /wp-admin/edit.php?post_type=services1,2401.9935.0533.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-post-type.php+613
    Invalid argument supplied for foreach()
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 21 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=services
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-includes/class-wp-post-type.php+613
    Invalid argument supplied for foreach()

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/gym-master-components/gym-master-service.php
    • > /wp-content/plugins/gym-master-components/gym-master-components.php
  • 8× 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/gym-master-components/gym-master-testimonial.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gym-master-components/pricing/pricing-table-shortcode.php:110
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gym-master-components/single-services.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gym-master-components/gym-master-team.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gym-master-components/pricing/gym-master-pricing.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gym-master-components/archive-services.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gym-master-components/archive-teams.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gym-master-components/single-teams.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: pricing table, custom post types, service

gym-master-components/gym-master-components.php 85% from 13 tests

Analyzing the main PHP file in "Gym Master Components - Essential Features For Gym Master Theme" version 1.0.1
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.0.1")

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 plugin1,544 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP114241151,360
JavaScript227595
CSS24489

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity11.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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/Close.png0.97KB0.61KB▼ 36.60%