Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/button-with-fontawesome-icons-by-like-agency/lbfa_widget.php+46
Methods with the same name as their class will not be constructors in a future version of PHP; like_fa_btn_widget has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼52.52ms] Passed 4 tests
An overview of server-side resources used by Button with FontAwesome icons by LIKE.agency
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.25 | 5.90 ▼34.06 |
Dashboard /wp-admin | 2.24 ▼1.07 | 6.07 ▼41.86 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 6.24 ▼45.79 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.65 | 7.19 ▼88.37 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 6.08 ▼30.41 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_like_fa_btn_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Button with FontAwesome icons by LIKE.agency
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.39 ▼0.84 | 2.04 ▲0.19 | 39.58 ▼4.08 |
Dashboard /wp-admin | 2,244 ▲62 | 5.11 ▼0.77 | 115.42 ▲11.74 | 42.72 ▲1.81 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.29 ▲0.29 | 40.98 ▼5.82 | 34.73 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.31 ▲5.78 | 676.13 ▲33.63 | 38.62 ▼20.66 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.40 ▲0.16 | 103.73 ▼5.29 | 45.91 ▲0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/button-with-fontawesome-icons-by-like-agency/lbfa_widget.php+46
Methods with the same name as their class will not be constructors in a future version of PHP; like_fa_btn_widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_like_fa_btn_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× 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/button-with-fontawesome-icons-by-like-agency/lbfa_widget.php:42
- > 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 76% from 29 tests
readme.txt 75% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
- Plugin Name: Please specify the plugin name on the first line (
=== button-with-fontawesome-icons-by-like-agency ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (Icon on square background positioned on top sample-01.png), #2 (Icon on circle background positioned on the left sample-02.png)
- Stable tag: No value
button-with-fontawesome-icons-by-like-agency/lbfa_widget.php 77% from 13 tests
The entry point to "Button with FontAwesome icons by LIKE.agency" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("button-with-fontawesome-icons-by-like-agency.php" instead of "lbfa_widget.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 325 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected669 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 49 | 367 |
PO File | 1 | 53 | 55 | 164 |
CSS | 2 | 33 | 0 | 138 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin