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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.94ms] Passed 4 tests
An overview of server-side resources used by Gantry 4 Framework
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.14 ▼9.14 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.39 ▲0.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.36 ▼2.89 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.71 ▼7.79 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.18 ▲1.34 |
Server storage [IO: ▲5.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 682 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Gantry 4 Framework
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.57 ▼0.97 | 2.07 ▲0.36 | 39.52 ▼2.57 |
Dashboard /wp-admin | 2,203 ▲21 | 5.90 ▲0.09 | 104.84 ▼1.45 | 41.06 ▲1.95 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.05 ▲0.05 | 39.74 ▲2.65 | 35.29 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,528 ▼2 | 23.35 ▲0.15 | 662.23 ▼35.98 | 58.97 ▼1.16 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.16 ▼0.08 | 96.61 ▼9.70 | 47.94 ▲4.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 42× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: form in wp-content/plugins/gantry/admin/admin_presets.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Gantry_FileResolver' not found in wp-content/plugins/gantry/classes/Gantry/CssFileResolver.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function gantry_import() in wp-content/plugins/gantry/core/rules/facttypes/wpmllang.class.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function gantry_import() in wp-content/plugins/gantry/core/rules/gantryoverridefact.class.php:9
- > PHP Notice
Undefined variable: activePanel in wp-content/plugins/gantry/admin/admin_assignments.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function gantry_dirname() in wp-content/plugins/gantry/admin/override.php:9
- > PHP Fatal error
Uncaught Error: Call to a member function getFullFieldset() on null in wp-content/plugins/gantry/admin/admin_presets.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function gantry_import() in wp-content/plugins/gantry/core/gantrycommentstempllayout.class.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function gantry_import() in wp-content/plugins/gantry/core/rules/facttypes/post_type.class.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function gantry_import() in wp-content/plugins/gantry/core/rules/facttypes/menu.class.php:9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
gantry/gantry.php Passed 13 tests
"Gantry 4 Framework" version 4.1.21's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
This is a Framework to support easily modifiable themes that are very extensible.
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 detected68,533 lines of code in 480 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 266 | 6,001 | 13,286 | 29,752 |
JavaScript | 95 | 5,586 | 3,693 | 18,808 |
LESS | 67 | 1,318 | 1,065 | 8,491 |
JSON | 1 | 0 | 0 | 7,555 |
CSS | 23 | 240 | 212 | 1,620 |
SVG | 3 | 0 | 0 | 1,432 |
PO File | 1 | 254 | 28 | 563 |
XML | 20 | 1 | 14 | 304 |
HTML | 4 | 0 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 19.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 589.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 8 | |
Traits | 0 | |
Classes | 259 | |
▷ Abstract classes | 14 | 5.41% |
▷ Concrete classes | 245 | 94.59% |
▷ Final classes | 1 | 0.41% |
Methods | 1,709 | |
▷ Static methods | 245 | 14.34% |
▷ Public methods | 1,357 | 79.40% |
▷ Protected methods | 328 | 19.19% |
▷ Private methods | 24 | 1.40% |
Functions | 148 | |
▷ Named functions | 128 | 86.49% |
▷ Anonymous functions | 20 | 13.51% |
Constants | 91 | |
▷ Global constants | 49 | 53.85% |
▷ Class constants | 42 | 46.15% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
98 PNG files occupy 0.16MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/widgets/checkbox/images/checkbox-small.png | 0.70KB | 0.43KB | ▼ 38.13% |
admin/widgets/colorchooser/images/picker.png | 0.54KB | 0.37KB | ▼ 31.53% |
admin/widgets/images/information.png | 2.24KB | 1.67KB | ▼ 25.54% |
admin/widgets/preset/images/delete.png | 0.61KB | 0.58KB | ▼ 5.76% |
admin/widgets/images/google_favicon.png | 1.20KB | 1.00KB | ▼ 17.01% |