Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.27ms] Passed 4 tests
An overview of server-side resources used by Social Flyer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 43.76 ▼1.18 |
Dashboard /wp-admin | 3.52 ▲0.21 | 52.77 ▼3.16 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 60.26 ▲10.04 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 96.02 ▼1.97 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 40.32 ▲5.22 |
Social Follow Flyer /wp-admin/options-general.php?page=followshape | 3.57 | 38.00 |
Server storage [IO: ▲0.91MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 127 new options
New WordPress options |
---|
sh_color |
sf_each_color_hvr3 |
sf_enable_ttip_hover1 |
sf_social_font_size8 |
sf_enable_ttip_hover3 |
sfsocial_each_color6 |
widget_recent-posts |
sf_enable_ttip_hover6 |
sf_enable_ttip_msg2 |
sfsocial_lable2 |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Social Flyer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,267 ▲506 | 15.49 ▲1.27 | 11.36 ▲9.55 | 42.58 ▼1.85 |
Dashboard /wp-admin | 2,380 ▲200 | 6.76 ▲1.19 | 120.90 ▲29.38 | 38.68 ▼1.32 |
Posts /wp-admin/edit.php | 2,305 ▲205 | 3.45 ▲1.45 | 49.47 ▲12.83 | 32.03 ▼7.14 |
Add New Post /wp-admin/post-new.php | 1,563 ▲35 | 23.57 ▲0.62 | 633.95 ▲31.87 | 37.32 ▼10.56 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.70 ▲0.49 | 81.09 ▼23.32 | 41.07 ▼3.26 |
Social Follow Flyer /wp-admin/options-general.php?page=followshape | 1,177 | 3.84 | 51.07 | 73.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 127 options
- sfsocial_net_show3
- sf_main_font_size
- sf_size
- sf_social_font_color7
- sf_social_font_color3
- sf_enable_border_hover7
- sf_scoial_icon_fa1
- sf_easing_type
- sfsocial_each_color3
- sf_main_text
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-flyer/inc/shape2.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-flyer/inc/shape6.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-flyer/inc/shape3.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-flyer/inc/responsive-css.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-flyer/inc/adminui.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/social-flyer/inc/flyerprocess.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-flyer/inc/shape4.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-flyer/socialflyer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-flyer/inc/shape7.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-flyer/inc/shape5.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
social-flyer/socialflyer.php 92% from 13 tests
"Social Flyer" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("social-flyer.php" instead of "socialflyer.php")
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
Good job! No executable or dangerous file extensions detected4,462 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 297 | 107 | 2,731 |
CSS | 4 | 39 | 56 | 1,112 |
SVG | 1 | 0 | 0 | 414 |
JavaScript | 6 | 37 | 31 | 205 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 7.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 PNG files occupy 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/opt/lc.png | 3.25KB | 0.41KB | ▼ 87.26% |
images/opt/rb.png | 3.27KB | 0.47KB | ▼ 85.49% |
images/opt/bc.png | 3.23KB | 0.41KB | ▼ 87.30% |
images/opt/lt.png | 3.30KB | 0.50KB | ▼ 84.87% |
css/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |