Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.39ms] Passed 4 tests
Server-side resources used by Surprise post grid
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 42.95 ▲3.49 |
Dashboard /wp-admin | 3.45 ▲0.15 | 44.10 ▼6.88 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 50.28 ▲2.42 |
Add New Post /wp-admin/post-new.php | 7.54 ▲1.66 | 92.78 ▼0.58 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.42 ▲4.66 |
Server storage [IO: ▲5.11MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 153 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
_surprise |
Browser metrics Passed 4 tests
Surprise post grid: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,003 ▲268 | 13.62 ▼0.74 | 8.63 ▲6.78 | 54.58 ▲1.09 |
Dashboard /wp-admin | 2,278 ▲90 | 4.84 ▼1.07 | 105.12 ▼1.64 | 39.57 ▼4.04 |
Posts /wp-admin/edit.php | 2,161 ▲72 | 2.03 ▼0.03 | 41.01 ▼0.61 | 37.76 ▲2.63 |
Add New Post /wp-admin/post-new.php | 6,331 ▲4,811 | 22.19 ▼1.03 | 897.37 ▲251.63 | 51.21 ▼1.45 |
Media Library /wp-admin/upload.php | 1,460 ▲69 | 4.21 ▼0.01 | 94.43 ▼6.55 | 43.43 ▲1.60 |
Title Options /wp-admin/admin.php?page=surprise-grid-options#tab=title-options | 6,218 | 6.48 | 249.46 | 52.89 |
Shortcode /wp-admin/admin.php?page=surprise-grid-options#tab=shortcode | 2,110 | 7.79 | 138.76 | 71.33 |
Read More /wp-admin/admin.php?page=surprise-grid-options#tab=read-more | 2,122 | 5.88 | 87.87 | 37.14 |
Meta Options /wp-admin/admin.php?page=surprise-grid-options#tab=meta-options | 6,249 | 5.73 | 221.33 | 32.09 |
Pagination /wp-admin/admin.php?page=surprise-grid-options#tab=pagination | 1,997 | 5.44 | 83.06 | 27.23 |
Content Options /wp-admin/admin.php?page=surprise-grid-options#tab=content-options | 6,099 | 6.04 | 188.91 | 29.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- _surprise
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surprise-post-grid/inc/class-surprise-post-grid-init.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (/assets/screenshot-1.png), #2 (/assets/screenshot-2.png), #3 (/assets/screenshot-3.png), #4 (/assets/screenshot-4.png), #5 (/assets/screenshot-5.png), #6 (/assets/screenshot-6.png)
surprise-post-grid/surprise-post-grid.php 92% from 13 tests
"Surprise post grid" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 202 characters long)
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
Good job! No executable or dangerous file extensions detected36,549 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 12 | 9,028 |
PO File | 20 | 3,140 | 3,460 | 6,574 |
CSS | 8 | 281 | 484 | 6,494 |
PHP | 63 | 1,850 | 853 | 5,872 |
Sass | 15 | 920 | 3 | 4,672 |
JavaScript | 6 | 1,221 | 348 | 3,909 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 21.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 6.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 199 | |
▷ Static methods | 35 | 17.59% |
▷ Public methods | 198 | 99.50% |
▷ Protected methods | 1 | 0.50% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |