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.03MB] [CPU: ▼8.10ms] Passed 4 tests
An overview of server-side resources used by Redpen Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 48.42 ▲8.09 |
Dashboard /wp-admin | 3.35 ▲0.00 | 49.60 ▼17.69 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.80 ▼4.60 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.98 ▼14.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.60 ▲4.33 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
redpen_plugin_notice |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Redpen Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 14.74 ▲0.22 | 1.80 ▼0.00 | 43.59 ▲2.90 |
Dashboard /wp-admin | 2,214 ▲34 | 5.67 ▼0.01 | 87.58 ▼1.32 | 86.08 ▲42.46 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.01 ▲0.01 | 36.08 ▼5.09 | 32.68 ▼6.66 |
Add New Post /wp-admin/post-new.php | 1,458 ▼68 | 16.28 ▼7.34 | 619.00 ▼75.33 | 52.46 ▲1.76 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.19 ▲0.03 | 96.54 ▼11.24 | 80.48 ▲30.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- redpen_plugin_notice
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/redpen-web-widget/redpen-widget.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: visual feedback, screenshot, user feedback, bug-tracking, issue reporting...
redpen-web-widget/redpen-widget.php 92% from 13 tests
The primary PHP file in "Redpen Widget" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("redpen-web-widget.php" instead of "redpen-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin584 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 57 | 0 | 346 |
PHP | 1 | 45 | 44 | 215 |
JavaScript | 1 | 3 | 0 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/redpen-logo.png | 2.52KB | 2.49KB | ▼ 1.28% |
img/redpen-icon.png | 0.33KB | 0.30KB | ▼ 8.58% |
img/fav-icon.png | 0.34KB | 0.35KB | 0.00% |