Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼4.18ms] Passed 4 tests
This is a short check of server-side resources used by Display Vendor Name by TheCartPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 35.64 ▼7.68 |
Dashboard /wp-admin | 3.60 ▲0.30 | 45.05 ▼0.30 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 48.48 ▼1.78 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 94.37 ▼6.96 |
Media Library /wp-admin/upload.php | 3.53 ▲0.29 | 37.93 ▲4.39 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Display Vendor Name by TheCartPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲122 | 13.37 ▼0.99 | 1.65 ▼0.24 | 38.71 ▼10.78 |
Dashboard /wp-admin | 2,260 ▲72 | 5.89 ▲1.02 | 113.94 ▲11.32 | 44.52 ▼0.13 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.01 ▼0.01 | 42.59 ▲1.13 | 36.97 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,534 ▲11 | 17.56 ▼5.47 | 600.46 ▼84.21 | 62.35 ▼4.40 |
Media Library /wp-admin/upload.php | 1,449 ▲61 | 4.23 ▼0.16 | 99.09 ▲0.21 | 40.58 ▼4.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: thecartpress, vendor, tcp, woocommerce
tcp-display-vendor/tcp-display-vendor.php Passed 13 tests
The main PHP file in "Display Vendor Name by TheCartPress" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Display vendor name at WooCommerce product page, cart, checkout and order page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,952 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 147 | 413 | 1,835 |
JavaScript | 62 | 65 | 64 | 89 |
CSS | 4 | 0 | 0 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 18.17 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 34 | 66.67% |
▷ Anonymous functions | 17 | 33.33% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 100.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
There are no PNG files in this plugin