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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.05 ▼0.42 | 15.22 ▼27.01 |
Dashboard /wp-admin | 3.07 ▼0.23 | 19.89 ▼27.95 |
Posts /wp-admin/edit.php | 3.07 ▼0.29 | 18.89 ▼32.16 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.82 | 17.12 ▼72.88 |
Media Library /wp-admin/upload.php | 3.07 ▼0.16 | 18.21 ▼13.41 |
All Testimonial /wp-admin/edit.php?post_type=testimonials | 3.08 | 18.24 |
Add Testimonial /wp-admin/post-new.php?post_type=testimonials | 3.07 | 17.93 |
Add New /wp-admin/post-new.php?post_type=services | 3.07 | 19.59 |
Add Pricing Table /wp-admin/post-new.php?post_type=pricing | 3.07 | 18.61 |
Team Categories /wp-admin/edit-tags.php?taxonomy=team-categories&post_type=teams | 3.08 | 16.99 |
Services Categories /wp-admin/edit-tags.php?taxonomy=services-category&post_type=services | 3.08 | 18.24 |
All Teams /wp-admin/edit.php?post_type=teams | 3.08 | 17.79 |
Testimonials Categories /wp-admin/edit-tags.php?taxonomy=testimonials-categories&post_type=testimonials | 3.08 | 18.31 |
Add Team /wp-admin/post-new.php?post_type=teams | 3.07 | 17.64 |
All Post /wp-admin/edit.php?post_type=services | 3.08 | 19.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,065 ▲308 | 14.00 ▼0.41 | 5.04 ▲2.85 | 38.72 ▼12.12 |
Dashboard /wp-admin | 2,351 ▲163 | 4.90 ▲0.01 | 102.37 ▼12.15 | 41.12 ▼2.27 |
Posts /wp-admin/edit.php | 2,233 ▲144 | 2.11 ▲0.08 | 41.58 ▲4.05 | 37.40 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,634 ▲101 | 23.36 ▲0.21 | 592.01 ▼91.04 | 60.25 ▲5.21 |
Media Library /wp-admin/upload.php | 1,533 ▲145 | 4.27 ▲0.06 | 95.12 ▼2.83 | 44.42 ▲2.23 |
All Testimonial /wp-admin/edit.php?post_type=testimonials | 1,214 | 1.99 | 52.18 | 31.36 |
Add Testimonial /wp-admin/post-new.php?post_type=testimonials | 2,436 | 7.84 | 177.90 | 66.64 |
Add New /wp-admin/post-new.php?post_type=services | 6,494 | 20.00 | 810.61 | 37.02 |
Add Pricing Table /wp-admin/post-new.php?post_type=pricing | 1,826 | 2.59 | 53.87 | 65.46 |
Team Categories /wp-admin/edit-tags.php?taxonomy=team-categories&post_type=teams | 1,404 | 2.33 | 29.76 | 31.28 |
Services Categories /wp-admin/edit-tags.php?taxonomy=services-category&post_type=services | 1,410 | 2.33 | 28.10 | 30.73 |
All Teams /wp-admin/edit.php?post_type=teams | 1,214 | 1.99 | 34.26 | 33.25 |
Testimonials Categories /wp-admin/edit-tags.php?taxonomy=testimonials-categories&post_type=testimonials | 1,410 | 2.33 | 29.59 | 34.14 |
Add Team /wp-admin/post-new.php?post_type=teams | 2,526 | 7.75 | 165.67 | 59.24 |
All Post /wp-admin/edit.php?post_type=services | 1,240 | 1.99 | 35.05 | 33.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 424 | 115 | 1,360 |
JavaScript | 2 | 27 | 5 | 95 |
CSS | 2 | 4 | 4 | 89 |
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 code | 0.48 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/Close.png | 0.97KB | 0.61KB | ▼ 36.60% |