Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_theme_data is deprecated since version 3.4.0! Use wp_get_theme() instead.
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.92ms] Passed 4 tests
A check of server-side resources used by Generate Box
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.56 ▼4.69 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.32 ▼3.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.04 ▲3.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.32 ▼22.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.85 ▲6.41 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Generate Box
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.48 ▲0.06 | 1.72 ▼0.55 | 42.82 ▼0.33 |
Dashboard /wp-admin | 2,203 ▲18 | 5.83 ▼0.05 | 95.79 ▼5.29 | 37.72 ▼8.46 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▼0.02 | 39.73 ▲0.49 | 34.19 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.28 ▲5.59 | 677.17 ▲67.31 | 52.83 ▼0.46 |
Media Library /wp-admin/upload.php | 1,391 ▲12 | 4.15 ▼0.05 | 101.99 ▼5.06 | 45.91 ▲5.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/generate-box/include/admin.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/generate-box/generate-box.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/generate-box/include/box.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings page), #2 (Generate Box forms)
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
generate-box/generate-box.php Passed 13 tests
This is the main PHP file of "Generate Box" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
86 characters long description:
Add more functionality to Generate Child Theme and Genesis framework from StudioPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin913 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 123 | 29 | 662 |
PHP | 4 | 239 | 92 | 251 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.33MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/box/red/generatebox-badge.png | 31.17KB | 14.40KB | ▼ 53.79% |
images/box/blue/generatebox-heading-short.png | 0.20KB | 0.36KB | 0.00% |
images/box/arrow.png | 2.29KB | 1.52KB | ▼ 33.87% |
images/box/shadow.png | 22.79KB | 9.83KB | ▼ 56.85% |
images/box/generatebox-bg.png | 1.01KB | 0.20KB | ▼ 79.75% |