Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.64MB] [CPU: ▲4.10ms] Passed 4 tests
This is a short check of server-side resources used by Socialized
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.57 | 54.81 ▲12.35 |
Dashboard /wp-admin | 3.96 ▲0.65 | 51.12 ▼4.18 |
Posts /wp-admin/edit.php | 4.07 ▲0.71 | 56.11 ▲7.60 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 110.15 ▲3.09 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 44.90 ▲9.90 |
Socialized /wp-admin/tools.php?page=socialized | 3.93 | 44.88 |
Server storage [IO: ▲5.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2,068 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
socialized_all_slugs |
can_compress_scripts |
widget_theysaidso_widget |
socialized_version |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Socialized
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.25 ▼1.11 | 2.13 ▲0.33 | 42.77 ▲0.55 |
Dashboard /wp-admin | 2,213 ▲22 | 4.86 ▲0.01 | 98.60 ▼4.40 | 37.65 ▲0.18 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 38.59 ▼3.39 | 36.03 ▲1.35 |
Add New Post /wp-admin/post-new.php | 6,748 ▲5,206 | 21.31 ▲3.16 | 953.24 ▲341.13 | 81.07 ▲26.08 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.16 ▼0.07 | 94.53 ▼7.36 | 41.59 ▼0.74 |
Socialized /wp-admin/tools.php?page=socialized | 1,506 | 5.38 | 48.30 | 60.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- socialized_version
- theysaidso_admin_options
- socialized_all_slugs
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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 items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/socialized/templates/edit-metabox.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/socialized/templates/dashboard-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/socialized/templates/dashboard-support.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
socialized/socialized.php 92% from 13 tests
The main PHP file in "Socialized" ver. 4.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected16,869 lines of code in 2,057 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 2,760 | 93 | 6,593 |
JavaScript | 12 | 499 | 208 | 5,909 |
PHP | 10 | 170 | 1,051 | 2,342 |
SVG | 2,025 | 0 | 0 | 2,025 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 76.20 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 6.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 33 | 45.83% |
▷ Public methods | 61 | 84.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 15.28% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin-logo.png | 5.36KB | 5.48KB | 0.00% |
assets/images/icon_link_32.png | 0.34KB | 0.36KB | 0.00% |
assets/images/icon_facebook_32.png | 0.22KB | 0.22KB | 0.00% |
assets/images/icon_email_32.png | 0.26KB | 0.26KB | 0.00% |
assets/images/icon_twitter_32.png | 0.29KB | 0.30KB | 0.00% |