Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.89ms] Passed 4 tests
An overview of server-side resources used by Animated Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.03 | 49.84 ▲1.28 |
Dashboard /wp-admin | 3.60 ▼0.04 | 53.25 ▼11.02 |
Posts /wp-admin/edit.php | 3.71 ▲0.03 | 52.62 ▲2.75 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.05 | 97.43 ▼10.58 |
Media Library /wp-admin/upload.php | 3.52 ▲0.03 | 37.25 ▼3.25 |
how to use /wp-admin/admin.php?page=abby-how-to-use | 3.49 | 34.06 |
Animated Buttons Shortcodes /wp-admin/admin.php?page=abby-settings | 3.49 | 35.38 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Animated Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲234 | 13.53 ▼0.83 | 12.11 ▲9.51 | 43.76 ▼0.99 |
Dashboard /wp-admin | 2,227 ▲50 | 5.71 ▲0.11 | 94.29 ▲1.33 | 38.97 ▼2.98 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.07 ▲0.08 | 40.14 ▼1.15 | 36.94 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,563 ▲32 | 23.31 ▲0.23 | 643.96 ▲36.36 | 53.69 ▲0.59 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.25 ▼0.07 | 101.07 ▼7.73 | 43.80 ▼0.39 |
how to use /wp-admin/admin.php?page=abby-how-to-use | 847 | 2.04 | 26.38 | 33.24 |
Animated Buttons Shortcodes /wp-admin/admin.php?page=abby-settings | 912 | 2.07 | 26.95 | 43.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/animated-buttons/Animated_Buttons.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/animated-buttons/inc/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
animated-buttons/Animated_Buttons.php 85% from 13 tests
The main PHP file in "Animated Buttons" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("animated-buttons.php" instead of "Animated_Buttons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin752 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 18 | 0 | 478 |
PHP | 2 | 24 | 32 | 213 |
JavaScript | 3 | 17 | 6 | 61 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/animated-buttons.png | 35.09KB | 34.11KB | ▼ 2.77% |