Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼2.55ms] Passed 4 tests
An overview of server-side resources used by WP Contributions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 35.00 ▼5.94 |
Dashboard /wp-admin | 3.54 ▲0.24 | 42.58 ▼8.46 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 42.76 ▲2.37 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 89.90 ▲1.82 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 36.55 ▲2.87 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_wp-contributions-theme-widget |
widget_recent-comments |
widget_wp-contributions-core-widget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_wp-contributions-plugin-widget |
can_compress_scripts |
widget_wp-contributions-codex-widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Contributions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.36 ▼0.18 | 1.50 ▼0.46 | 38.30 ▼6.87 |
Dashboard /wp-admin | 2,195 ▲21 | 5.65 ▲0.12 | 84.20 ▼11.71 | 38.94 ▼1.84 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.04 | 35.17 ▼1.13 | 34.20 ▼5.14 |
Add New Post /wp-admin/post-new.php | 6,375 ▲4,849 | 22.39 ▼0.73 | 843.36 ▲176.15 | 59.43 ▲5.51 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▼0.01 | 95.66 ▼3.45 | 42.96 ▼4.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- widget_wp-contributions-theme-widget
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_wp-contributions-core-widget
- widget_wp-contributions-plugin-widget
- widget_recent-posts
- theysaidso_admin_options
- widget_wp-contributions-codex-widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-contributions/templates/wp-contributions-codex-widget-template.php
- > /wp-content/plugins/wp-contributions/templates/wp-contributions-core-widget-template.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: codex, contributions, plugins, widget, core...
wp-contributions/wp-contributions.php 92% from 13 tests
Analyzing the main PHP file in "WP Contributions" version 1.2.1
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin30,092 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 28,564 |
PHP | 16 | 336 | 583 | 1,121 |
JavaScript | 4 | 16 | 34 | 145 |
Sass | 7 | 25 | 8 | 138 |
CSS | 4 | 11 | 1 | 73 |
Markdown | 1 | 33 | 0 | 51 |
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.28 |
Average class complexity | 12.11 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 6 | 12.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 1.18KB | 1.21KB | 0.00% |
assets/banner-772x250.png | 4.21KB | 4.08KB | ▼ 3.25% |
assets/icon-128x128.png | 0.69KB | 0.74KB | 0.00% |
assets/images/plugin-icon.png | 0.55KB | 0.63KB | 0.00% |
assets/banner-1544x500.png | 9.65KB | 9.18KB | ▼ 4.92% |