Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲1.67ms] Passed 4 tests
A check of server-side resources used by WP Profitshare
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 50.28 ▲1.67 |
Dashboard /wp-admin | 3.81 ▲0.51 | 60.64 ▲5.38 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 55.71 ▲2.59 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 90.64 ▼2.89 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 45.35 ▲5.31 |
Server storage [IO: ▲1.33MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 38 new files
Database: 7 new tables, 8 new options
New tables |
---|
wp_ps_convert_old_links |
wp_ps_shorted_links |
wp_ps_keywords |
wp_ps_advertisers |
wp_ps_campaigns |
wp_ps_conversions |
wp_ps_tag_images |
New WordPress options |
---|
ps_installed_version |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
ps_adv_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by WP Profitshare
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,048 ▲287 | 14.85 ▲0.48 | 7.09 ▲5.02 | 42.60 ▼0.77 |
Dashboard /wp-admin | 2,343 ▲163 | 6.09 ▲0.43 | 105.91 ▲13.21 | 43.60 ▲3.50 |
Posts /wp-admin/edit.php | 2,274 ▲174 | 3.44 ▲1.42 | 46.16 ▲6.09 | 31.83 ▼5.38 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.14 ▼0.03 | 648.58 ▼34.39 | 36.19 ▼17.16 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.13 ▲0.01 | 82.49 ▼28.02 | 47.98 ▼0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 5 tables
- wp_ps_convert_old_links
- wp_ps_keywords
- wp_ps_campaigns
- wp_ps_tag_images
- wp_ps_shorted_links
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- ps_adv_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- ps_installed_version
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: afiliati, affiliates, marketing afiliat, conversion, conversie...
wp-profitshare/wp-profitshare.php Passed 13 tests
The main file in "WP Profitshare" v. 1.4.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
Converts all your direct links into affiliate links in order for you to earn commissions through Profitshare.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,841 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 375 | 336 | 2,756 |
CSS | 5 | 106 | 11 | 609 |
JavaScript | 6 | 114 | 64 | 463 |
SVG | 1 | 0 | 0 | 13 |
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.46 |
Average class complexity | 17.60 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 1.04MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 45.50KB | 23.10KB | ▼ 49.22% |
screenshot-6.png | 77.90KB | 28.14KB | ▼ 63.88% |
screenshot-2.png | 83.49KB | 41.37KB | ▼ 50.44% |
images/button.png | 0.48KB | 0.45KB | ▼ 5.11% |
screenshot-7.png | 571.04KB | 155.13KB | ▼ 72.83% |