Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.85ms] Passed 4 tests
A check of server-side resources used by CP Referrer and Conversion Tracking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 39.41 ▼5.76 |
Dashboard /wp-admin | 3.48 ▲0.13 | 49.54 ▼16.19 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.86 ▲3.17 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 94.68 ▼4.62 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.94 ▲4.18 |
I Need Help /wp-admin/admin.php?page=cp_reftrack_support | 3.35 | 33.29 |
Tracking Stats /wp-admin/admin.php?page=cp_reftrack_report | 3.47 | 35.97 |
Referral Sources /wp-admin/admin.php?page=cp_reftrack_parameters | 3.43 | 33.15 |
CP Referrer Tracking /wp-admin/admin.php?page=cp_reftrack | 3.53 | 34.18 |
Tracking Logs /wp-admin/admin.php?page=cp_reftrack_list | 3.43 | 33.08 |
Conversions /wp-admin/admin.php?page=cp_reftrack_conversions | 3.46 | 33.59 |
Add Ons /wp-admin/admin.php?page=cp_reftrack_addons | 3.52 | 33.85 |
General Settings /wp-admin/admin.php?page=cp_reftrack_settings | 3.38 | 33.26 |
CP Referrer Tracking /wp-admin/options-general.php?page=cp_reftrack | 3.53 | 37.48 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 49 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_cpreftrack_conversions |
wp_cpreftrack_logs |
wp_cpreftrack_registeredrefs |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for CP Referrer and Conversion Tracking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲98 | 14.22 ▼0.49 | 1.73 ▲0.12 | 36.92 ▼6.15 |
Dashboard /wp-admin | 2,250 ▲73 | 5.63 ▼0.01 | 92.65 ▼4.14 | 43.70 ▲1.08 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.00 ▼0.02 | 39.12 ▼6.78 | 35.17 ▼4.00 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.55 ▲0.55 | 582.33 ▼83.40 | 53.90 ▲7.49 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.11 ▼0.03 | 95.96 ▼4.18 | 41.47 ▼3.82 |
I Need Help /wp-admin/admin.php?page=cp_reftrack_support | 1,641 | 2.25 | 50.40 | 60.46 |
Tracking Stats /wp-admin/admin.php?page=cp_reftrack_report | 1,312 | 1.80 | 29.29 | 48.84 |
Referral Sources /wp-admin/admin.php?page=cp_reftrack_parameters | 1,020 | 1.86 | 27.15 | 34.31 |
CP Referrer Tracking /wp-admin/admin.php?page=cp_reftrack | 948 | 1.90 | 27.28 | 28.74 |
Tracking Logs /wp-admin/admin.php?page=cp_reftrack_list | 985 | 1.80 | 28.83 | 30.57 |
Conversions /wp-admin/admin.php?page=cp_reftrack_conversions | 987 | 1.79 | 26.46 | 33.63 |
Add Ons /wp-admin/admin.php?page=cp_reftrack_addons | 993 | 1.74 | 25.08 | 44.94 |
General Settings /wp-admin/admin.php?page=cp_reftrack_settings | 925 | 1.79 | 24.39 | 28.13 |
CP Referrer Tracking /wp-admin/options-general.php?page=cp_reftrack | 951 | 1.73 | 26.68 | 30.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_cpreftrack_registeredrefs
- wp_cpreftrack_conversions
- wp_cpreftrack_logs
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cp-referrer-and-conversions-tracking/cp-admin-int-message-list.inc.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-referrer-and-conversions-tracking/cp-settings.inc.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cp-referrer-and-conversions-tracking/cp-admin-int-parameters-list.inc.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cp-referrer-and-conversions-tracking/addons/cf7.addon.php:30
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cp-referrer-and-conversions-tracking/cp-full-stats.inc.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cp-referrer-and-conversions-tracking/cp-admin-int-report.inc.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cp-referrer-and-conversions-tracking/addons/cfwpp.addon.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cp-referrer-and-conversions-tracking/addons/userregistration.addon.php:30
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cp-referrer-and-conversions-tracking/cp-admin-int-conversions-list.inc.php:4
- > PHP Fatal error
Uncaught Error: Class 'CP_REFTRACK_BaseClass' not found in wp-content/plugins/cp-referrer-and-conversions-tracking/cp-main-class.inc.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=cp_reftrack_report
- > Network (severe)
wp-content/plugins/cp-referrer-and-conversions-tracking/js/excanvas.min.js - Failed to load resource: the server responded with a status of 404 (Not 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
6 plugin tags: logs, referrer, marketing, stats, conversion...
cp-referrer-and-conversions-tracking/cp-referrer-tracking-plugin.php 92% from 13 tests
The main file in "CP Referrer and Conversion Tracking" v. 1.01.21 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cp-referrer-and-conversions-tracking.php" instead of "cp-referrer-tracking-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,847 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 897 | 230 | 2,765 |
CSS | 5 | 73 | 165 | 1,082 |
JavaScript | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 96 | 97.96% |
▷ Protected methods | 1 | 1.02% |
▷ Private methods | 1 | 1.02% |
Functions | 6 | |
▷ Named functions | 6 | 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
16 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/cupertino/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png | 0.10KB | 0.14KB | 0.00% |
css/cupertino/images/ui-icons_2694e8_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/cupertino/images/ui-bg_glass_50_3baae3_1x400.png | 0.17KB | 0.16KB | ▼ 6.82% |
css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png | 0.25KB | 0.15KB | ▼ 38.25% |