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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.07ms] Passed 4 tests
Analyzing server-side resources used by Partnerize Partner
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.54 ▼0.71 |
Dashboard /wp-admin | 3.38 ▲0.07 | 45.45 ▼4.69 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.86 ▼7.26 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.20 ▼14.52 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.36 ▼1.81 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_partnerize_partner_auth |
wp_partnerize_partner_participation |
New WordPress options |
---|
widget_theysaidso_widget |
_partnerize_partner_auth_table |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
_partnerize_partner_version |
_partnerize_partner_participation_table |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Partnerize Partner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.54 ▼0.74 | 2.02 ▲0.32 | 43.33 ▲0.49 |
Dashboard /wp-admin | 2,221 ▲30 | 4.92 ▲0.02 | 94.61 ▼5.68 | 59.07 ▲17.78 |
Posts /wp-admin/edit.php | 2,107 ▲21 | 2.02 ▲0.02 | 35.44 ▼1.42 | 34.78 ▲1.74 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.18 ▲0.12 | 730.19 ▲67.19 | 67.58 ▲15.54 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.19 ▼0.04 | 103.37 ▼6.33 | 73.90 ▲27.43 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/partnerize-partner/class/partnerize_tracking_list.php
- > /wp-content/plugins/partnerize-partner/functions.php
- > /wp-content/plugins/partnerize-partner/partnerize_partner.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- License uri: Please fix this invalid URI: "LICENSE"
partnerize-partner/partnerize_partner.php 85% from 13 tests
This is the main PHP file of "Partnerize Partner" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("partnerize-partner.php" instead of "partnerize_partner.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected531 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 103 | 75 | 448 |
JavaScript | 1 | 4 | 1 | 83 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 2 | 28.57% |
▷ Protected methods | 3 | 42.86% |
▷ Private methods | 2 | 28.57% |
Functions | 17 | |
▷ Named functions | 17 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/partnerize_icon.png | 32.49KB | 15.08KB | ▼ 53.57% |
assets/16x16-partnerize_icon.png | 1.54KB | 0.51KB | ▼ 66.60% |