Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.14ms] Passed 4 tests
A check of server-side resources used by Social Tools
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 45.32 ▲4.09 |
Dashboard /wp-admin | 3.47 ▲0.16 | 45.88 ▼0.60 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 42.02 ▼5.83 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 80.41 ▼13.02 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.27 ▲2.91 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_adswst_facebook_likebox_widget |
widget_theysaidso_widget |
db_upgraded |
widget_adswst_social_icons_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_adswst_instagram_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Tools
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.69 ▲0.48 | 1.63 ▼0.13 | 42.31 ▲0.28 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.08 | 83.52 ▼5.51 | 36.27 ▼2.71 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.06 | 35.32 ▼3.04 | 31.14 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.01 ▼0.03 | 601.99 ▲3.19 | 53.21 ▲6.37 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.02 | 96.90 ▼5.87 | 48.66 ▲3.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_adswst_instagram_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_adswst_social_icons_widget
- widget_adswst_facebook_likebox_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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 50% 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
Please fix the following
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-tools/alids-social-tools.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-tools/widgets/widget-facebook.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-tools/core/setup.php:34
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-tools/widgets/widget-instagram.php:6
- > PHP Warning
Use of undefined constant ADSWST_PATH - assumed 'ADSWST_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-tools/core/core.php on line 4
- > PHP Warning
require(ADSWST_PATHwidgets/widget-facebook.php): failed to open stream: No such file or directory in wp-content/plugins/social-tools/core/core.php on line 4
- > PHP Fatal error
require(): Failed opening required 'ADSWST_PATHwidgets/widget-facebook.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-tools/core/core.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-tools/widgets/widget-social-icons.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-tools/core/init.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% 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 your attention:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
social-tools/alids-social-tools.php 77% from 13 tests
The entry point to "Social Tools" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "WP 5.0.2")
- Main file name: The principal plugin file should be the same as the plugin slug ("social-tools.php" instead of "alids-social-tools.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected897 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 156 | 55 | 711 |
CSS | 6 | 9 | 18 | 167 |
SVG | 1 | 7 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 31.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 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 | 4 | |
▷ Global constants | 4 | 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
PNG images were not found in this plugin