Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.94ms] Passed 4 tests
This is a short check of server-side resources used by OSI Affiliate
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.69 ▲0.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.67 ▼3.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.71 ▲3.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.01 ▼20.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 40.35 ▲4.11 |
Server storage [IO: ▲0.51MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_osi_hss_short_code |
New WordPress options |
---|
osi_hss_limit |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
OSI Affiliate: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.26 ▼0.29 | 1.84 ▲0.22 | 55.48 ▲13.31 |
Dashboard /wp-admin | 2,211 ▲31 | 5.63 ▲0.02 | 90.29 ▼6.63 | 38.76 ▼5.33 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 1.95 ▼0.07 | 41.24 ▲1.73 | 36.16 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,539 ▲2 | 23.05 ▲4.91 | 657.02 ▲30.85 | 53.92 ▼12.81 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.24 ▼0.02 | 101.19 ▲1.12 | 44.50 ▼1.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in osi-affiliate/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== osi-affiliate ===
)
osi-affiliate/osi-affiliate.php Passed 13 tests
"OSI Affiliate" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
136 characters long description:
OSI Affiliate plugin allows customers to add any code to a web site. For example, we have code that we give people for our saas product.
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
No dangerous file extensions were detected1,527 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 50 | 1 | 602 |
PHP | 11 | 113 | 35 | 514 |
SVG | 1 | 0 | 0 | 399 |
JavaScript | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/suggest.png | 3.30KB | 0.85KB | ▼ 74.28% |
images/gplus.png | 3.34KB | 0.79KB | ▼ 76.37% |
images/pause.png | 6.80KB | 4.51KB | ▼ 33.71% |
images/twitter.png | 0.61KB | 0.75KB | 0.00% |
images/facebook.png | 0.59KB | 0.66KB | 0.00% |