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
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼8.04ms] Passed 4 tests
This is a short check of server-side resources used by Link Badges
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 51.73 ▲6.96 |
Dashboard /wp-admin | 3.43 ▲0.12 | 48.64 ▼9.29 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 50.62 ▲0.01 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 85.05 ▼21.89 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.75 ▼1.00 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Link Badges
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.43 ▼0.21 | 1.84 ▼0.04 | 43.56 ▼1.48 |
Dashboard /wp-admin | 2,200 ▲23 | 5.58 ▼0.10 | 89.70 ▼2.35 | 39.50 ▼1.34 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.00 ▼0.01 | 39.20 ▼2.26 | 35.00 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,540 ▲4 | 23.04 ▲4.70 | 634.70 ▼31.54 | 50.14 ▼16.57 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.21 ▲0.04 | 96.37 ▼16.29 | 42.91 ▲0.42 |
Link Badges /wp-admin/link-badges.php | 26 | 0.42 | 0.06 | 16.61 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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)
Good news, no errors were detected
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
- 2× 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/link-badges/link-badges.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/link-badges/link-badges-settings.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/link-badges.php
- > Network (severe)
wp-admin/link-badges.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: anchor
link-badges/link-badges.php Passed 13 tests
"Link Badges" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Adds classes to indicate links to PDF, DOC, XLS etc files
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
Success! There were no dangerous files found in this plugin3,506 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 0 | 19 | 2,079 |
PHP | 5 | 143 | 54 | 735 |
SVG | 1 | 0 | 0 | 655 |
JavaScript | 2 | 3 | 3 | 37 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 5.00 |
▷ 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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bang-widget.png | 0.81KB | 1.11KB | 0.00% |
images/bang-black-v.png | 3.58KB | 0.72KB | ▼ 79.87% |
images/bang.png | 3.76KB | 1.22KB | ▼ 67.67% |
images/img.png | 0.61KB | 0.89KB | 0.00% |
images/ppt.png | 0.78KB | 0.99KB | 0.00% |