Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲2.69ms] Passed 4 tests
An overview of server-side resources used by SP Blog Designer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.73 ▲3.53 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.29 ▲1.26 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.18 ▲4.08 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.32 ▲3.84 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.88 ▲2.12 |
Contact Us /wp-admin/admin.php?page=sp-help&tab=support | 3.30 | 33.25 |
Create Shortcode /wp-admin/admin.php?page=SpBlogDesigner | 3.27 | 31.65 |
FAQ /wp-admin/admin.php?page=sp-help&tab=faq | 3.22 | 37.29 |
Help /wp-admin/admin.php?page=sp-help | 3.22 | 33.82 |
Server storage [IO: ▲17.92MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SP Blog Designer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲147 | 14.03 ▲0.76 | 5.09 ▼2.31 | 42.81 ▼5.84 |
Dashboard /wp-admin | 2,277 ▲68 | 5.19 ▼0.68 | 112.27 ▲9.77 | 40.92 ▼0.52 |
Posts /wp-admin/edit.php | 2,172 ▲83 | 2.57 ▲0.54 | 43.95 ▲6.37 | 53.12 ▲17.56 |
Add New Post /wp-admin/post-new.php | 1,573 ▲54 | 20.99 ▼2.33 | 683.87 ▲44.14 | 38.74 ▼27.84 |
Media Library /wp-admin/upload.php | 1,456 ▲65 | 4.57 ▲0.37 | 101.80 ▼0.99 | 41.31 ▼6.14 |
Contact Us /wp-admin/admin.php?page=sp-help&tab=support | 1,327 | 2.21 | 30.84 | 49.75 |
Create Shortcode /wp-admin/admin.php?page=SpBlogDesigner | 2,762 | 2.77 | 75.28 | 90.81 |
FAQ /wp-admin/admin.php?page=sp-help&tab=faq | 1,359 | 2.32 | 38.31 | 52.53 |
Help /wp-admin/admin.php?page=sp-help | 1,324 | 2.20 | 32.47 | 40.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SpBlogDesigner
- > Notice in wp-content/plugins/sp-blog-designer/includes/sp-functions.php+437
Undefined index: class
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SpBlogDesigner
- > Notice in wp-content/plugins/sp-blog-designer/includes/sp-functions.php+437
Undefined index: property
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SpBlogDesigner
- > Notice in wp-content/plugins/sp-blog-designer/includes/admin/settings.php+65
Undefined variable: tmpl_id
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: news, blog, blog plugin, designer, news design...
sp-blog-designer/sp-blogs.php 85% from 13 tests
This is the main PHP file of "SP Blog Designer" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6.35" instead of "5.6")
- Main file name: Name the main plugin file the same as the plugin slug ("sp-blog-designer.php" instead of "sp-blogs.php")
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 plugin3,200 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 201 | 334 | 3,188 |
CSS | 3 | 0 | 0 | 8 |
JavaScript | 3 | 2 | 14 | 4 |
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.53 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.86MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-1-2.png | 134.03KB | 50.54KB | ▼ 62.29% |
assets/images/grids.png | 244.19KB | 82.66KB | ▼ 66.15% |
assets/images/design.png | 60.03KB | 21.21KB | ▼ 64.66% |
assets/images/splogo.png | 5.19KB | 2.55KB | ▼ 50.85% |
assets/images/list.png | 162.05KB | 54.20KB | ▼ 66.55% |