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.02MB] [CPU: ▼2.06ms] Passed 4 tests
Server-side resources used by Cuboh Storefront Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.82 ▼9.54 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.49 ▼7.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.15 ▲8.24 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 96.46 ▲5.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.49 ▲2.39 |
Server storage [IO: ▲0.02MB] [DB: ▲1.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Cuboh Storefront Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.74 ▲0.45 | 1.73 ▼0.12 | 39.81 ▼7.33 |
Dashboard /wp-admin | 2,206 ▲51 | 4.86 ▼0.82 | 111.82 ▲8.58 | 41.56 ▼0.08 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.98 ▼0.07 | 40.42 ▲2.43 | 34.63 ▲1.46 |
Add New Post /wp-admin/post-new.php | 6,583 ▲5,036 | 29.26 ▲10.96 | 852.06 ▲257.48 | 59.52 ▼16.69 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.10 | 96.23 ▼2.07 | 46.73 ▲5.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲1.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cuboh-storefront-button/cuboh-storefront-button.php:26
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please a description for screenshot #1 in cuboh-storefront-button/assets to your readme.txt
cuboh-storefront-button/cuboh-storefront-button.php Passed 13 tests
"Cuboh Storefront Button" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
Takes customers directly to your Cuboh storefront.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected141 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 133 |
PHP | 2 | 1 | 20 | 6 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin