Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.73ms] Passed 4 tests
Server-side resources used by Genesis Simple Share
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.23 ▲3.56 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.84 ▲1.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.86 ▲0.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.53 ▼13.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.72 ▲1.02 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Genesis Simple Share
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.59 ▼0.79 | 1.84 ▼0.16 | 44.53 ▲2.00 |
Dashboard /wp-admin | 2,203 ▲15 | 4.83 ▼1.00 | 101.58 ▼4.11 | 41.44 ▼2.66 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.03 | 35.34 ▼7.27 | 34.89 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,538 ▲1 | 23.05 ▲4.61 | 665.32 ▲35.65 | 54.09 ▼0.55 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.12 ▼0.08 | 96.51 ▼12.59 | 44.10 ▼3.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/genesis-simple-share/includes/class-genesis-simple-share-front-end.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-simple-share/includes/class-genesis-simple-share-entry-meta.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/genesis-simple-share/includes/functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/genesis-simple-share/includes/class-genesis-simple-share-boxes.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/genesis-simple-share/includes/class-genesis-simple-share-preview.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/genesis-simple-share/plugin.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
9 plugin tags: stumbleupon, pinterest, social, genesis, facebook...
genesis-simple-share/plugin.php 92% from 13 tests
The main PHP file in "Genesis Simple Share" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("genesis-simple-share.php" instead of "plugin.php")
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
No dangerous file extensions were detected1,300 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 391 | 557 | 1,098 |
SVG | 1 | 0 | 0 | 133 |
Markdown | 2 | 22 | 0 | 62 |
CSS | 4 | 4 | 4 | 4 |
JavaScript | 3 | 0 | 2 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 27.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 1 | 2.27% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected