Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.93ms] Passed 4 tests
Analyzing server-side resources used by WP Carticon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 44.50 ▲1.47 |
Dashboard /wp-admin | 3.33 ▼0.01 | 50.83 ▼18.92 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.11 ▲5.59 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.60 ▼15.96 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.15 ▼2.30 |
Carticon /wp-admin/options-general.php?page=carticon-settings | 3.22 | 30.53 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
carticon_js_script |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
carticon_activate_global |
Browser metrics Passed 4 tests
A check of browser resources used by WP Carticon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.33 ▼0.44 | 1.88 ▲0.06 | 43.70 ▲1.45 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▼0.01 | 90.61 ▼2.82 | 39.50 ▼1.48 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▲0.05 | 38.76 ▼2.57 | 36.45 ▼1.11 |
Add New Post /wp-admin/post-new.php | 6,233 ▲4,707 | 25.98 ▲2.38 | 925.23 ▲224.38 | 65.81 ▲8.62 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.30 ▲0.08 | 97.12 ▼10.25 | 47.91 ▼1.55 |
Carticon /wp-admin/options-general.php?page=carticon-settings | 901 | 1.99 | 24.05 | 30.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- carticon_js_script
- theysaidso_admin_options
- db_upgraded
- carticon_activate_global
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-carticon/wp-carticon.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ecommerce, b2c, sell online, orders, shop
wp-carticon/wp-carticon.php Passed 13 tests
The main PHP file in "WP Carticon" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
85 characters long description:
Quickly add Carticon widget on your Wordpress site and start selling online instantly
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
Everything looks great! No dangerous files found in this plugin148 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 42 | 142 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/carticon.png | 9.30KB | 4.32KB | ▼ 53.58% |