Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.83ms] Passed 4 tests
This is a short check of server-side resources used by Zurb Foundation 5 Clearing Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.22 ▼16.24 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.74 ▲0.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.07 ▲0.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.81 ▲0.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.41 ▲0.55 |
Server storage [IO: ▲0.29MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Zurb Foundation 5 Clearing Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.61 ▼0.70 | 1.62 ▼1.07 | 39.76 ▼18.74 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.00 | 104.07 ▲3.29 | 39.73 ▼1.74 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.03 | 39.64 ▲0.97 | 34.55 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,530 ▲10 | 23.17 ▲0.01 | 631.71 ▼27.64 | 52.84 ▲5.25 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.15 ▼0.02 | 93.61 ▼6.32 | 41.95 ▼0.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zurb-foundation-5-clearing-gallery/prso-foundation-5-clearing-gallery.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
9 plugin tags: zurb foundation gallery, foundation 5, zurb foundation 5, zurb foundation clearing, foundation clearing...
zurb-foundation-5-clearing-gallery/prso-foundation-5-clearing-gallery.php 85% from 13 tests
This is the main PHP file of "Zurb Foundation 5 Clearing Gallery" version 1.01, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("zurb-foundation-5-clearing-gallery.php" instead of "prso-foundation-5-clearing-gallery.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
Everything looks great! No dangerous files found in this plugin1,541 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 263 | 319 | 1,481 |
HTML | 1 | 8 | 0 | 60 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 5 | 20.83% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/ReduxConfig/presets/preset2.png | 29.74KB | 10.91KB | ▼ 63.31% |
inc/ReduxConfig/patterns/triangular_@2X.png | 0.21KB | 0.25KB | 0.00% |
inc/ReduxConfig/patterns/triangular.png | 0.21KB | 0.22KB | 0.00% |
inc/ReduxConfig/patterns/tree_bark.png | 41.37KB | 43.65KB | 0.00% |
inc/ReduxConfig/presets/preset1.png | 18.04KB | 7.56KB | ▼ 58.12% |