Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.42ms] Passed 4 tests
A check of server-side resources used by Home Badges
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.71 ▼4.58 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.34 ▲1.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.69 ▼4.83 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.03 ▼13.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.78 ▲0.90 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Home Badges
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲30 | 14.27 ▼0.37 | 1.90 ▲0.14 | 43.07 ▼5.27 |
Dashboard /wp-admin | 2,197 ▲20 | 5.58 ▼0.09 | 89.82 ▲5.47 | 38.15 ▼3.39 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.97 ▼0.11 | 40.17 ▲0.44 | 35.82 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,528 ▼3 | 23.62 ▲0.60 | 709.30 ▲2.24 | 56.80 ▲2.86 |
Media Library /wp-admin/upload.php | 1,405 ▲11 | 4.20 ▲0.04 | 103.35 ▲1.61 | 46.91 ▲0.49 |
Uninstaller [IO: ▲0.00MB] [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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/home-badges/index.php:21
- > PHP Fatal error
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 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Invalid url: "bcooling.com.au/projects/home-badges/"
- Screenshots: Please add an image for screenshot #1 (Elegant icons to identify the front and posts page are displayed on the manage pages screen)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== home-badges ===
)
home-badges/index.php 92% from 13 tests
The entry point to "Home Badges" version 0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("home-badges.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin358 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 1 | 0 | 1 | 126 |
CSS | 2 | 5 | 13 | 79 |
PHP | 2 | 20 | 17 | 77 |
SVG | 2 | 0 | 0 | 44 |
JavaScript | 1 | 1 | 1 | 27 |
Markdown | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
home-badges.png | 8.19KB | 3.07KB | ▼ 62.51% |
screenshot-1.png | 20.10KB | 4.68KB | ▼ 76.73% |