Benchmarks
Plugin footprint 82% 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 gracefully, with no errors
Server metrics [RAM: ▼0.09MB] [CPU: ▼13.42ms] 75% from 4 tests
Analyzing server-side resources used by TCP Referrer Shortcode
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 898.23ms on /wp-admin/admin.php?page=thecartpress)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▼0.56 | 17.57 ▼18.91 |
Dashboard /wp-admin | 3.39 ▲0.04 | 47.16 ▼12.92 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.22 ▼1.66 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.06 ▼20.17 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.03 ▲0.51 |
TCP Plugins /wp-admin/admin.php?page=thecartpress | 3.38 | 898.23 |
Referrer Shortcode /wp-admin/admin.php?page=tcp_referrer_shortcode | 3.28 | 26.94 |
Server storage [IO: ▲0.02MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TCP Referrer Shortcode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.24 ▼0.29 | 1.63 ▲0.05 | 44.07 ▼0.53 |
Dashboard /wp-admin | 2,212 ▲38 | 5.53 ▼0.11 | 79.84 ▼7.26 | 75.73 ▲34.00 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 1.99 ▼0.00 | 36.33 ▼12.37 | 31.83 ▼6.15 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.08 ▼0.14 | 748.51 ▲73.47 | 54.76 ▼6.12 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.23 ▼0.17 | 97.53 ▼5.36 | 75.26 ▲31.58 |
TCP Plugins /wp-admin/admin.php?page=thecartpress | 945 | 2.05 | 26.54 | 31.20 |
Referrer Shortcode /wp-admin/admin.php?page=tcp_referrer_shortcode | 818 | 1.99 | 23.52 | 23.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tcp_referrer_shortcode
- > Network (severe)
wp-content/plugins/tcp-referrer-shortcode/assets/images/tcp-icon.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tcp_referrer_shortcode
- > Network (severe)
wp-content/plugins/tcp-referrer-shortcode/assets/css/menu.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 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
6 plugin tags: referer, referrer, shortcode, woocommerce, thecartpress...
tcp-referrer-shortcode/tcp-referrer-shortcode.php Passed 13 tests
"TCP Referrer Shortcode" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
Replace shortcode with referrer by using [tcp_referer]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin464 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 145 | 464 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 11 | 73.33% |
▷ Anonymous functions | 4 | 26.67% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin