Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.40ms] Passed 4 tests
Server-side resources used by Sponsor Redirect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 47.05 ▲2.52 |
Dashboard /wp-admin | 3.38 ▲0.07 | 56.10 ▲2.70 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 76.99 ▲8.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 107.70 ▼6.95 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 46.78 ▲7.32 |
Documentation /wp-admin/edit.php?post_type=sponsor&page=msbd-srp-documentation | 3.27 | 38.82 |
Settings /wp-admin/edit.php?post_type=sponsor&page=msbd-srp-settings | 3.27 | 39.54 |
Add New /wp-admin/post-new.php?post_type=sponsor | 3.41 | 61.26 |
Sponsors /wp-admin/edit.php?post_type=sponsor | 3.33 | 48.60 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
_msbd_srp_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Sponsor Redirect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲101 | 13.25 ▼1.05 | 4.22 ▲2.49 | 45.32 ▼14.03 |
Dashboard /wp-admin | 2,258 ▲55 | 5.03 ▼0.86 | 102.09 ▼4.45 | 44.49 ▲7.09 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.19 ▲0.17 | 42.57 ▼1.99 | 33.48 ▼4.35 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.27 ▲5.85 | 617.52 ▼54.98 | 68.17 ▲9.42 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.15 ▼0.11 | 115.33 ▼0.55 | 46.35 ▼3.17 |
Documentation /wp-admin/edit.php?post_type=sponsor&page=msbd-srp-documentation | 1,141 | 5.17 | 148.78 | 56.72 |
Settings /wp-admin/edit.php?post_type=sponsor&page=msbd-srp-settings | 1,083 | 4.83 | 152.34 | 33.19 |
Add New /wp-admin/post-new.php?post_type=sponsor | 2,282 | 7.65 | 170.32 | 65.10 |
Sponsors /wp-admin/edit.php?post_type=sponsor | 1,109 | 2.00 | 33.84 | 33.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- _msbd_srp_options
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/sponsor-redirect/main.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sponsor&page=msbd-srp-settings
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: show sponsor image, affiliate url redirect, manage affiliate partners, manage sponsor links, sponsor redirect...
sponsor-redirect/main.php 77% from 13 tests
"Sponsor Redirect" version 0.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sponsor-redirect.php" instead of "main.php")
- Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)
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
Success! There were no dangerous files found in this plugin847 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 299 | 148 | 744 |
CSS | 2 | 17 | 0 | 79 |
JavaScript | 2 | 6 | 9 | 24 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 16.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 7 | 21.88% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/msbd_favicon_16.png | 0.61KB | 0.63KB | 0.00% |
images/msbd_favicon_32.png | 1.12KB | 1.20KB | 0.00% |
images/msbd_logo.png | 28.81KB | 9.10KB | ▼ 68.41% |