Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.90ms] Passed 4 tests
This is a short check of server-side resources used by EOG Simplest Share Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 46.68 ▲4.56 |
Dashboard /wp-admin | 3.39 ▲0.04 | 48.65 ▼14.68 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.09 ▼3.60 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 99.66 ▼8.97 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.65 ▲3.67 |
EOG Simplest Share Buttons /wp-admin/options-general.php?page=eog_ssb_options | 3.28 | 34.61 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
eog_ssb_settings |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by EOG Simplest Share Buttons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.22 ▼0.13 | 1.88 ▲0.10 | 39.38 ▼3.36 |
Dashboard /wp-admin | 2,196 ▲19 | 5.62 ▲0.04 | 91.28 ▼5.48 | 37.88 ▼2.34 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.04 ▲0.01 | 40.34 ▲2.98 | 35.04 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.63 ▲0.62 | 679.12 ▲11.35 | 58.72 ▼1.06 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▼0.03 | 104.61 ▼6.48 | 45.87 ▼2.97 |
EOG Simplest Share Buttons /wp-admin/options-general.php?page=eog_ssb_options | 1,057 | 2.15 | 22.23 | 29.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eog-simplest-share-buttons/includes/core.php:137
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eog-simplest-share-buttons/includes/admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eog-simplest-share-buttons/eog-simplest-share-buttons.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
8 plugin tags: gplus, facebook, buttons, network, whatsapp...
eog-simplest-share-buttons/eog-simplest-share-buttons.php 92% from 13 tests
The main PHP file in "EOG Simplest Share Buttons" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,114 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 196 | 680 | 1,038 |
SVG | 1 | 0 | 0 | 565 |
CSS | 2 | 51 | 18 | 390 |
PO File | 1 | 48 | 49 | 120 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.74 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 134.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 9 | 25.71% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 2 | 5.71% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 3 | 25.00% |
▷ Class constants | 9 | 75.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin