Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.07ms] Passed 4 tests
Analyzing server-side resources used by Social Photo Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.63 ▼5.33 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.22 ▼1.69 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.07 ▼3.50 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.45 ▼21.75 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.91 ▲2.07 |
Social photo blocks /wp-admin/options-general.php?page=Social_Photo_Blocks | 3.24 | 32.27 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_social_photo_slide_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_social_photo_grid_widget |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Photo Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.25 ▼1.34 | 1.74 ▼0.14 | 41.88 ▼6.89 |
Dashboard /wp-admin | 2,212 ▲21 | 6.01 ▲1.10 | 93.21 ▼5.95 | 39.81 ▼2.58 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.01 ▼0.01 | 39.86 ▼4.15 | 34.89 ▼6.88 |
Add New Post /wp-admin/post-new.php | 6,593 ▲5,065 | 29.46 ▲11.45 | 880.73 ▲273.82 | 36.70 ▼20.41 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.17 ▼0.03 | 95.70 ▼3.29 | 41.16 ▼2.28 |
Social photo blocks /wp-admin/options-general.php?page=Social_Photo_Blocks | 835 | 2.06 | 28.41 | 36.40 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_social_photo_slide_widget
- theysaidso_admin_options
- widget_social_photo_grid_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/social-photo-blocks/tpl/recent_slider.php
- > /wp-content/plugins/social-photo-blocks/oauth_redirect.php
- > /wp-content/plugins/social-photo-blocks/social-photo-blocks.php
- > /wp-content/plugins/social-photo-blocks/tpl/recent_basic.php
- 28× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-photo-blocks/tpl/recent_slider.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-photo-blocks/tpl/recent_basic.php on line 1
- > PHP Notice
Undefined index: code in wp-content/plugins/social-photo-blocks/oauth_redirect.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/social-photo-blocks/tpl/recent_basic.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-photo-blocks/tpl/recent_slider.php on line 1
- > PHP Notice
Undefined variable: cfg in wp-content/plugins/social-photo-blocks/tpl/recent_slider.php on line 1
- > PHP Notice
Undefined variable: cfg in wp-content/plugins/social-photo-blocks/tpl/recent_basic.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-photo-blocks/tpl/recent_basic.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-photo-blocks/tpl/recent_slider.php on line 1
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/social-photo-blocks/tpl/recent_slider.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
social-photo-blocks/social-photo-blocks.php Passed 13 tests
"Social Photo Blocks" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
Plugin provides gutenberg block, shortcode & widget of recent photos from your social accounts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected938 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 127 | 149 | 554 |
JavaScript | 2 | 19 | 9 | 281 |
CSS | 1 | 25 | 6 | 103 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 23.33 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 24 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.11% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
No PNG images were found in this plugin