Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.28ms] Passed 4 tests
This is a short check of server-side resources used by Fonebug Supply List
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.79 ▲4.87 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.66 ▼2.61 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.28 ▲1.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.98 ▼5.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.74 ▼3.25 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Fonebug Supply List
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.68 ▲0.31 | 2.00 ▲0.54 | 44.45 ▲4.83 |
Dashboard /wp-admin | 2,204 ▲27 | 5.51 ▼0.17 | 82.56 ▼5.33 | 39.18 ▼2.66 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.02 ▲0.04 | 38.68 ▼5.16 | 39.93 ▲0.86 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 22.87 ▼0.55 | 591.71 ▼57.19 | 50.52 ▲0.06 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.21 ▼0.07 | 102.83 ▲5.73 | 41.99 ▲2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/fonebug-supply-list/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/fonebug-supply-list/_include/fb-styles.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/fonebug-supply-list/admin_home.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fonebug-supply-list/wp-fonebug-supply-list.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/fonebug-supply-list/_include/fb-build-db.php:3
- > 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 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== fonebug-supply-list ===
) - Screenshots: These screenshots require images: #1 (fonebug-screenshot-1.png), #2 (fonebug-screenshot-2.png), #3 (fonebug-screenshot-3.png), #4 (fonebug-screenshot-4.png), #5 (fonebug-screenshot-5.png)
fonebug-supply-list/wp-fonebug-supply-list.php 92% from 13 tests
The primary PHP file in "Fonebug Supply List" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("fonebug-supply-list.php" instead of "wp-fonebug-supply-list.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
Everything looks great! No dangerous files found in this plugin1,046 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 150 | 159 | 1,046 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 34 | |
▷ Named functions | 34 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_btns/btn_save16_reg.png | 3.14KB | 0.52KB | ▼ 83.37% |
_btns/btn_delete16_reg.png | 0.70KB | 0.74KB | 0.00% |
_btns/btn_check_green16_reg.png | 1.90KB | 0.94KB | ▼ 50.26% |
_btns/btn_check_green32_reg.png | 1.71KB | 1.62KB | ▼ 5.19% |
_btns/btn_fonebug32_reg.png | 3.18KB | 1.63KB | ▼ 48.91% |