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.16MB] [CPU: ▼1.07ms] Passed 4 tests
An overview of server-side resources used by XML for Hotline
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.70 ▼0.22 |
Dashboard /wp-admin | 3.47 ▲0.16 | 52.55 ▲3.87 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.72 ▼1.21 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 93.83 ▼6.12 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.55 ▲3.26 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for XML for Hotline
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲46 | 14.72 ▲0.00 | 1.72 ▼0.04 | 43.22 ▼0.22 |
Dashboard /wp-admin | 2,201 ▲24 | 5.62 ▼0.07 | 94.43 ▼5.06 | 43.48 ▼1.95 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.02 ▲0.05 | 40.14 ▼0.01 | 39.95 ▲2.32 |
Add New Post /wp-admin/post-new.php | 1,529 ▲2 | 23.23 ▲0.30 | 593.59 ▼74.20 | 47.65 ▼13.41 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.28 ▲0.12 | 98.17 ▲1.57 | 41.53 ▲0.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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
Good news, no errors were detected
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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/xml-for-hotline/classes/system/class-xfhu-wp-list-table.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/xml-for-hotline/classes/system/class-xfhu-settings-feed-wp-list-table.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1.png) image required
xml-for-hotline/xml-for-hotline.php 92% from 13 tests
"XML for Hotline" version 1.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin5,361 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 284 | 835 | 4,136 |
PO File | 2 | 809 | 1,414 | 1,194 |
CSS | 1 | 0 | 1 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 29.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 2 | 33.33% |
Methods | 63 | |
▷ Static methods | 14 | 22.22% |
▷ Public methods | 52 | 82.54% |
▷ Protected methods | 4 | 6.35% |
▷ Private methods | 7 | 11.11% |
Functions | 50 | |
▷ Named functions | 49 | 98.00% |
▷ Anonymous functions | 1 | 2.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 84.65KB | 32.42KB | ▼ 61.69% |