Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.50ms] Passed 4 tests
Analyzing server-side resources used by Simple Buttons Creator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.73 ▼7.41 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.28 ▼1.62 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.04 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.57 ▼6.32 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.36 ▲1.37 |
Add New Button /wp-admin/admin.php?page=sbc-new | 3.28 | 33.03 |
Simple Buttons Creator /wp-admin/admin.php?page=simple-buttons | 3.27 | 30.68 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- The plugin illegally modified 1 file (12.00KB) outside of "wp-content/plugins/simple-buttons-creator/" and "wp-content/uploads/"
- (new file) wp-content/data/sbc.sqlite
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_sbc_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Buttons Creator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲64 | 13.16 ▼1.45 | 1.55 ▼0.49 | 40.44 ▼3.37 |
Dashboard /wp-admin | 2,242 ▲51 | 5.86 ▲0.94 | 94.64 ▼11.12 | 70.02 ▲27.92 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.05 ▼0.09 | 33.97 ▼3.13 | 33.32 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,557 ▲37 | 18.42 ▼4.80 | 747.37 ▲159.48 | 60.67 ▼0.83 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.25 ▲0.05 | 106.51 ▲11.57 | 77.21 ▲32.76 |
Add New Button /wp-admin/admin.php?page=sbc-new | 1,217 | 2.31 | 56.39 | 25.09 |
Simple Buttons Creator /wp-admin/admin.php?page=simple-buttons | 862 | 1.98 | 35.68 | 24.00 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_sbc_widget
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined index: method in wp-content/plugins/simple-buttons-creator/bt-manage.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'sqlite' not found in wp-content/plugins/simple-buttons-creator/pages/new.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-buttons-creator/sbc-widget.php:3
- > PHP Notice
Undefined index: method in wp-content/plugins/simple-buttons-creator/bt-manage.php on line 14
- > PHP Notice
Undefined index: method in wp-content/plugins/simple-buttons-creator/bt-manage.php on line 4
- > PHP Notice
Undefined index: method in wp-content/plugins/simple-buttons-creator/bt-manage.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-buttons-creator/sbc-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'sqlite' not found in wp-content/plugins/simple-buttons-creator/pages/index.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: widget, sqlite, button
simple-buttons-creator/sbc.php 85% from 13 tests
The main PHP file in "Simple Buttons Creator" ver. 1.04 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 303 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-buttons-creator.php" instead of "sbc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin618 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 66 | 64 | 427 |
JavaScript | 3 | 14 | 8 | 117 |
CSS | 3 | 17 | 5 | 74 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.69MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 79.60KB | 25.31KB | ▼ 68.21% |
screenshot-5.png | 66.50KB | 22.31KB | ▼ 66.46% |
screenshot-6.png | 119.79KB | 41.72KB | ▼ 65.17% |
screenshot-1.png | 79.20KB | 24.30KB | ▼ 69.32% |
screenshot-4.png | 65.53KB | 18.40KB | ▼ 71.92% |