Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.57ms] Passed 4 tests
Analyzing server-side resources used by WPAC Social Tools - Like, React & Share
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.59 ▲7.45 |
Dashboard /wp-admin | 3.41 ▲0.11 | 60.20 ▲11.68 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.87 ▼0.32 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 89.14 ▼11.26 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.05 ▲1.86 |
WPAC Settings /wp-admin/admin.php?page=wpac-settings | 3.31 | 34.34 |
Like/Dislike /wp-admin/admin.php?page=wpac-button-settings | 3.31 | 35.68 |
Sharing /wp-admin/admin.php?page=wpac-sharing-settings | 3.31 | 32.13 |
Reactions /wp-admin/admin.php?page=wpac-reaction-settings | 3.28 | 31.08 |
Server storage [IO: ▲3.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_wpac_reactions_system |
wp_wpac_like_system |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_wpacpopularposts_widget |
theysaidso_admin_options |
wpac_db_version |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPAC Social Tools - Like, React & Share
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲217 | 13.61 ▼1.07 | 5.67 ▲3.95 | 72.36 ▲32.71 |
Dashboard /wp-admin | 2,238 ▲50 | 5.80 ▲0.89 | 97.61 ▼12.61 | 41.83 ▲0.74 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▼0.05 | 34.87 ▼6.40 | 33.87 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,543 ▲23 | 22.97 ▼0.30 | 665.73 ▲72.45 | 56.63 ▼6.16 |
Media Library /wp-admin/upload.php | 1,423 ▲41 | 4.20 ▲0.07 | 105.31 ▲8.31 | 49.54 ▲6.85 |
WPAC Settings /wp-admin/admin.php?page=wpac-settings | 965 | 2.06 | 23.81 | 33.28 |
Like/Dislike /wp-admin/admin.php?page=wpac-button-settings | 919 | 2.06 | 22.40 | 28.33 |
Sharing /wp-admin/admin.php?page=wpac-sharing-settings | 882 | 2.06 | 25.79 | 27.77 |
Reactions /wp-admin/admin.php?page=wpac-reaction-settings | 957 | 2.06 | 22.07 | 29.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_wpac_like_system
- wp_wpac_reactions_system
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- wpac_db_version
- widget_wpacpopularposts_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wpac-reaction-settings
- > Notice in wp-content/plugins/wpac-like-system/inc/setting-fields/reactions.php+77
Undefined variable: position_style
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wpac-like-system/inc/shortcodes.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpac-like-system/inc/setting-parts/menu-pages.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpac-like-system/inc/scripts.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpac-like-system/inc/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpac-like-system/inc/btns.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpac-like-system/inc/static-functions.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpac-like-system/inc/reactions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpac-like-system/inc/setting-parts/register-settings.php:309
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpac-like-system/inc/widgets/wpac-popular-posts.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: post like, dislike, reactions, like, social sharing
wpac-like-system/wpac-like-system.php 92% from 13 tests
The primary PHP file in "WPAC Social Tools - Like, React & Share" version 3.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected26,268 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,299 |
CSS | 6 | 2,097 | 33 | 5,142 |
Sass | 21 | 513 | 34 | 4,800 |
LESS | 21 | 510 | 67 | 4,746 |
PHP | 24 | 255 | 192 | 2,146 |
JavaScript | 3 | 12 | 8 | 135 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 69 | |
▷ Named functions | 69 | 100.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/emoji_like_1.png | 2.36KB | 2.01KB | ▼ 14.87% |
assets/img/emoji_laugh_1.png | 2.08KB | 1.76KB | ▼ 15.66% |
assets/img/emoji_sad_1.png | 2.07KB | 1.82KB | ▼ 12.13% |
assets/img/emoji_love_1.png | 2.18KB | 1.85KB | ▼ 15.43% |
assets/img/emoji_shocked_1.png | 2.00KB | 1.77KB | ▼ 11.70% |