Benchmarks
Plugin footprint 5% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.30ms] Passed 4 tests
Server-side resources used by Wpp Link Social
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.20 ▲0.16 |
Dashboard /wp-admin | 3.31 ▼0.03 | 51.07 ▼16.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 52.51 ▲4.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.14 ▼17.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.21 ▲4.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wpp_link_social |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Wpp Link Social
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 13.51 ▼1.10 | 1.95 ▲0.37 | 44.58 ▲4.98 |
Dashboard /wp-admin | 2,234 ▲31 | 4.82 ▼1.05 | 111.93 ▲1.30 | 44.31 ▼1.34 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▼0.08 | 40.55 ▲4.28 | 36.81 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,558 ▲13 | 23.22 ▼0.00 | 669.30 ▲14.40 | 55.80 ▲3.38 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.22 ▲0.06 | 104.90 ▲4.16 | 47.34 ▼0.15 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the followingZombie tables were found after uninstall: 1 table Zombie WordPress options detected upon uninstall: 7 options
- This plugin did not uninstall without warnings or errors
- > Error in wp-content/plugins/wpp-link-social/aiu.php+22
Uncaught Error: Call to undefined function prepare() in wp-content/plugins/wpp-link-social/aiu.php:22
Stack trace:
#0 wp-includes/class-wp-hook.php(310): wppwls_uninstall()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(1269): do_action()
#4 wp-admin/includes/plugin.php(960): uninstall_plugin() - Uninstaller has failed for this plugin, leaving 12 files (0.02MB) in the plugin directory
- (new file) img/twitter.png
- (new file) plugin-admin.php
- (new file) plugin-menu.php
- (new file) index.php
- (new file) aiu.php
- (new file) img/gplus.png
- (new file) plugin-process.php
- (new file) img/email.png
- (new file) plugin-show.php
- (new file) img/facebook.png
- ...
- wpp_link_social
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpp-link-social/index.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/aiu.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpp-link-social/wpp-link-social.php:35
- > PHP Warning
Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-show.php on line 2
- > PHP Warning
Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-process.php on line 2
- > PHP Warning
Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-menu.php on line 2
- > PHP Warning
Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-admin.php on line 2
- > PHP Warning
Use of undefined constant Plugin_Name - assumed 'Plugin_Name' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpp-link-social/plugin-admin.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: There are too many tags (24 tag instead of maximum 10)
wpp-link-social/wpp-link-social.php Passed 13 tests
"Wpp Link Social" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
A plugin that allows to create social icons with link in the webpage of your website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected242 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 50 | 23 | 242 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/email.png | 4.08KB | 1.38KB | ▼ 66.20% |
img/twitter.png | 3.61KB | 1.07KB | ▼ 70.42% |
img/facebook.png | 3.43KB | 0.87KB | ▼ 74.67% |
img/gplus.png | 4.02KB | 1.34KB | ▼ 66.64% |