Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/simple-follow-buttons/inc/buttons.php+18
Trying to access array offset on value of type null
Server metrics [RAM: ▼1.79MB] [CPU: ▼53.57ms] Passed 4 tests
An overview of server-side resources used by Simple Follow Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 5.77 ▼41.79 |
Dashboard /wp-admin | 2.22 ▼1.09 | 11.54 ▼44.17 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 6.74 ▼40.65 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 7.75 ▼87.65 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 5.82 ▼31.13 |
Follow Buttons /wp-admin/options-general.php?page=simple-follow-buttons | 2.22 | 8.15 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 147 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_sfb_widget |
theysaidso_admin_options |
sfb_buttons |
sfb_version |
widget_theysaidso_widget |
sfb_settings |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Follow Buttons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 14.05 ▼0.33 | 6.64 ▲5.00 | 37.81 ▼8.91 |
Dashboard /wp-admin | 2,213 ▲25 | 4.87 ▼0.02 | 99.02 ▼6.15 | 37.38 ▼8.10 |
Posts /wp-admin/edit.php | 2,072 ▼17 | 2.01 ▼0.01 | 36.44 ▼0.19 | 38.31 ▲7.63 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 23.20 ▲0.08 | 605.80 ▼25.43 | 71.69 ▼7.29 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.01 | 99.71 ▼8.51 | 43.51 ▲0.11 |
Follow Buttons /wp-admin/options-general.php?page=simple-follow-buttons | 2,610 | 4.20 | 84.84 | 161.28 |
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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/simple-follow-buttons/inc/widget.php+52
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 8 options
- sfb_buttons
- db_upgraded
- widget_recent-posts
- widget_sfb_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=simple-follow-buttons
- > Deprecated in wp-content/plugins/simple-follow-buttons/inc/widget.php+52
Function create_function() is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-follow-buttons/inc/buttons.php
- > /wp-content/plugins/simple-follow-buttons/inc/admin_bits.php
- > /wp-content/plugins/simple-follow-buttons/inc/database.php
- > /wp-content/plugins/simple-follow-buttons/inc/forms.php
- > /wp-content/plugins/simple-follow-buttons/inc/styles.php
- > /wp-content/plugins/simple-follow-buttons/inc/widget.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-follow-buttons/simple-follow-buttons.php:71
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: linkedin, facebook, pinterest, yummly, twitter...
simple-follow-buttons/simple-follow-buttons.php Passed 13 tests
This is the main PHP file of "Simple Follow Buttons" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
A simple plugin that enables you to add follow buttons to all of your posts and/or pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,496 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 363 | 602 | 1,286 |
JavaScript | 7 | 72 | 125 | 641 |
CSS | 5 | 40 | 49 | 534 |
SVG | 1 | 0 | 0 | 35 |
PHP code Passed 2 tests
Analyzing 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.38 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 24 | |
▷ Named functions | 24 | 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
121 PNG files occupy 0.44MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
buttons/plain/tumblr.png | 1.92KB | 1.92KB | 0.00% |
buttons/arbenta/yummly.png | 6.08KB | 2.20KB | ▼ 63.92% |
buttons/arbenta/print.png | 1.99KB | 2.01KB | 0.00% |
buttons/metal/twitter.png | 4.37KB | 3.47KB | ▼ 20.53% |
buttons/plain/reddit.png | 2.26KB | 2.27KB | 0.00% |