Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/a-sub-site-teaser-widget/a-sub-site-teaser-widget.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; A_Sub_Site_Teaser_Widget has a deprecated constructor
Server metrics [RAM: ▼1.74MB] [CPU: ▼57.91ms] Passed 4 tests
This is a short check of server-side resources used by A Sub Site Teaser Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 5.91 ▼40.20 |
Dashboard /wp-admin | 2.28 ▼1.03 | 8.37 ▼42.22 |
Posts /wp-admin/edit.php | 2.28 ▼1.09 | 6.83 ▼48.22 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.62 | 7.10 ▼101.01 |
Media Library /wp-admin/upload.php | 2.28 ▼0.96 | 7.96 ▼30.13 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_a_sub_site_teaser_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for A Sub Site Teaser Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.24 ▼0.11 | 1.99 ▲0.07 | 41.90 ▼4.92 |
Dashboard /wp-admin | 2,192 ▲15 | 5.61 ▼0.05 | 95.08 ▼0.57 | 41.45 ▼1.09 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 40.83 ▲3.81 | 36.54 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.14 ▲0.11 | 626.97 ▼52.18 | 58.27 ▲2.01 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.04 | 106.63 ▼5.19 | 44.20 ▼4.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/a-sub-site-teaser-widget/a-sub-site-teaser-widget.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; A_Sub_Site_Teaser_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_a_sub_site_teaser_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× 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/a-sub-site-teaser-widget/a-sub-site-teaser-widget.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== a-sub-site-teaser-widget ===
)
a-sub-site-teaser-widget/a-sub-site-teaser-widget.php Passed 13 tests
Analyzing the main PHP file in "A Sub Site Teaser Widget" version 1.0
16 characters long description:
Teasers subpages
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
No dangerous file extensions were detected614 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 13 | 475 |
PO File | 1 | 30 | 68 | 79 |
CSS | 1 | 21 | 1 | 60 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 8.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
No PNG files were detected