Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/creative-socials/socials-widgets.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; socials_icons_Widget has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼53.94ms] Passed 4 tests
An overview of server-side resources used by Creative Socials
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 5.14 ▼38.72 |
Dashboard /wp-admin | 2.14 ▼1.20 | 6.22 ▼55.25 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 7.09 ▼39.48 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 6.20 ▼82.32 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 5.65 ▼31.97 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_socials-icons |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Creative Socials: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.26 ▼0.27 | 1.80 ▼0.13 | 43.96 ▼5.39 |
Dashboard /wp-admin | 2,210 ▲30 | 5.54 ▼0.08 | 92.82 ▲2.43 | 65.60 ▲25.46 |
Posts /wp-admin/edit.php | 2,121 ▲24 | 1.97 ▼0.05 | 37.88 ▲0.86 | 33.39 ▼8.15 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.14 ▼0.12 | 784.67 ▲101.79 | 62.85 ▲7.13 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.08 ▼0.10 | 103.52 ▼3.73 | 70.06 ▲20.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/creative-socials/socials-widgets.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; socials_icons_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_socials-icons
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creative-socials/socials-panel.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creative-socials/socials-widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/creative-socials/functions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creative-socials/socials-panel.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: A description for screenshot #0 is missing in creative-socials/assets to your readme.txt
creative-socials/socials.php 92% from 13 tests
"Creative Socials" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("creative-socials.php" instead of "socials.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin17,942 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 2,117 | 1,220 | 12,164 |
CSS | 7 | 144 | 164 | 3,250 |
PHP | 4 | 180 | 46 | 1,202 |
LESS | 1 | 4 | 1 | 927 |
SVG | 2 | 0 | 0 | 399 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 6.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
57 PNG files occupy 0.55MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/success.png | 2.12KB | 0.99KB | ▼ 53.20% |
assets/css/images/ui-icons_286581_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
assets/images/empty.png | 0.10KB | 0.09KB | ▼ 3.06% |
assets/images/specer.png | 0.10KB | 0.09KB | ▼ 3.06% |
assets/images/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |