Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/gust/gust.php+62
Use of undefined constant GUST_NAME - assumed 'GUST_NAME' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.20MB] [CPU: ▲1.26ms] Passed 4 tests
Analyzing server-side resources used by Gust
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 45.48 ▲1.90 |
Dashboard /wp-admin | 3.51 ▲0.20 | 53.97 ▲2.85 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 54.93 ▲6.30 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 95.18 ▼6.03 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 48.73 ▲11.98 |
Gust /wp-admin/options-general.php?page=gust_options | 3.40 | 40.17 |
Server storage [IO: ▲2.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
gust_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Gust
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲7 | 13.69 ▼1.05 | 4.84 ▲3.03 | 44.84 ▼0.57 |
Dashboard /wp-admin | 2,210 ▲7 | 5.85 ▲1.01 | 106.06 ▼13.08 | 41.31 ▼14.41 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.99 ▲0.02 | 44.59 ▲6.47 | 38.71 ▲6.12 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.62 ▼5.82 | 691.89 ▲34.34 | 54.48 ▼9.77 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.24 ▼0.01 | 95.42 ▼7.96 | 40.72 ▼3.55 |
Gust /wp-admin/options-general.php?page=gust_options | 840 | 2.03 | 27.76 | 29.83 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- gust_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Even though everything seems fine, this is not 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 fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/gust/views/header-top.html.php
- > /wp-content/plugins/gust/views/forgotten.html.php
- 96× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant GUST_PLUGIN_URL - assumed 'GUST_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gust/views/scripts.html.php on line 28
- > PHP Warning
Use of undefined constant GUST_VERSION - assumed 'GUST_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/gust/views/scripts.html.php on line 12
- > PHP Warning
Use of undefined constant GUST_VERSION - assumed 'GUST_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/gust/views/scripts.html.php on line 17
- > PHP Warning
Use of undefined constant GUST_PLUGIN_URL - assumed 'GUST_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gust/views/scripts.html.php on line 19
- > PHP Warning
Use of undefined constant GUST_PLUGIN_URL - assumed 'GUST_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gust/views/scripts.html.php on line 16
- > PHP Warning
Use of undefined constant GUST_VERSION - assumed 'GUST_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/gust/views/scripts.html.php on line 16
- > PHP Warning
Use of undefined constant GUST_VERSION - assumed 'GUST_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/gust/views/scripts.html.php on line 14
- > PHP Warning
Use of undefined constant GUST_PLUGIN_URL - assumed 'GUST_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gust/views/header-top.html.php on line 19
- > PHP Warning
Use of undefined constant GUST_VERSION - assumed 'GUST_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/gust/views/scripts.html.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/gust/views/header.html.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Login screen), #2 (List of posts/pages), #3 (Post editor screen), #4 (**New** - post tagging interface)
gust/gust.php Passed 13 tests
The main PHP script in "Gust" version 0.4.1 is automatically included on every request by WordPress
35 characters long description:
A port of the Ghost admin interface
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
Success! There were no dangerous files found in this plugin26,157 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 2,687 | 3,592 | 17,746 |
CSS | 2 | 317 | 571 | 4,494 |
PHP | 16 | 421 | 745 | 3,343 |
SVG | 2 | 0 | 0 | 574 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 72.12 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 258.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 195 | |
▷ Static methods | 99 | 50.77% |
▷ Public methods | 120 | 61.54% |
▷ Protected methods | 54 | 27.69% |
▷ Private methods | 21 | 10.77% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.20MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 8.41KB | 3.57KB | ▼ 57.58% |
screenshot-2.png | 66.71KB | 30.53KB | ▼ 54.23% |
screenshot-3.png | 95.50KB | 41.56KB | ▼ 56.48% |
assets/user-image.png | 2.36KB | 1.56KB | ▼ 34.12% |
assets/admin-bar-sprite.png | 2.41KB | 2.56KB | 0.00% |