Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.16ms] Passed 4 tests
This is a short check of server-side resources used by Flipboard Magazine Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.04 ▼8.44 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.05 ▼2.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.07 ▲3.42 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.93 ▲7.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.17 ▲2.71 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_flipboard_magazine_widget |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flipboard Magazine Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲64 | 13.25 ▼1.48 | 2.85 ▲0.91 | 41.62 ▼0.77 |
Dashboard /wp-admin | 2,206 ▲24 | 5.85 ▲0.95 | 110.66 ▼5.67 | 41.98 ▼0.90 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.06 ▲0.04 | 40.43 ▲4.63 | 37.73 ▲4.23 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.69 ▲0.52 | 602.09 ▼91.68 | 60.56 ▲7.71 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.02 | 98.51 ▼3.48 | 42.34 ▼0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_flipboard_magazine_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flipboard-magazine-widget/class-flipboard-magazine-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function taupecat\\plugins_url() in wp-content/plugins/flipboard-magazine-widget/class-flipboard.php:38
- > 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 issues were found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (An example of how the widget appears on your site.)
flipboard-magazine-widget/flipboard-magazine-widget.php Passed 13 tests
"Flipboard Magazine Widget" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
Add a Flipboard magazine widget (https://share.flipboard.com/) to your sidebar
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin97 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 46 | 99 | 96 |
JavaScript | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 121.17KB | 43.17KB | ▼ 64.37% |