Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/lanyrd-splat-widget/lanyrd_splat.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; lanyrdSplat has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼56.46ms] Passed 4 tests
Server-side resources used by Lanyrd Splat Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.62 ▼37.35 |
Dashboard /wp-admin | 2.10 ▼1.25 | 10.69 ▼52.79 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.55 ▼49.15 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.71 ▼86.53 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 4.93 ▼27.74 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_lanyrdsplat |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lanyrd Splat Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.14 ▼1.61 | 1.74 ▼0.09 | 42.86 ▼0.42 |
Dashboard /wp-admin | 2,206 ▲24 | 4.84 ▼0.04 | 110.70 ▲1.12 | 41.30 ▲3.06 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.00 | 34.99 ▼1.06 | 35.15 ▲4.88 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.05 ▲4.95 | 660.33 ▲51.22 | 58.12 ▲1.43 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▲0.07 | 94.78 ▼5.51 | 43.76 ▼0.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/lanyrd-splat-widget/lanyrd_splat.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; lanyrdSplat has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_lanyrdsplat
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lanyrd-splat-widget/lanyrd_splat.php:15
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Setting up the Lanyrd widget.), #2 (The Lanyrd Widget in action.)
lanyrd-splat-widget/lanyrd_splat.php 92% from 13 tests
The primary PHP file in "Lanyrd Splat Widget" version 0.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lanyrd-splat-widget.php" instead of "lanyrd_splat.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
No dangerous file extensions were detected98 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 16 | 98 |
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.04 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.14KB | 7.41KB | ▼ 61.28% |
screenshot-2.png | 48.77KB | 17.25KB | ▼ 64.63% |