Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.20ms] Passed 4 tests
An overview of server-side resources used by Peentify WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.93 ▼3.43 |
Dashboard /wp-admin | 3.33 ▼0.02 | 43.42 ▼9.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.92 ▲1.42 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.96 ▼16.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.52 ▲3.87 |
Peentify /wp-admin/options-general.php?page=peentify-settings | 3.22 | 30.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 10 new options
New WordPress options |
---|
peentify_status |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
peentify_api_secret |
can_compress_scripts |
widget_theysaidso_widget |
peentify_api_key |
widget_recent-posts |
peentify_main_url |
Browser metrics Passed 4 tests
Peentify WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.23 ▼0.17 | 1.70 ▼0.02 | 44.30 ▲1.49 |
Dashboard /wp-admin | 2,198 ▲21 | 5.56 ▼0.08 | 86.34 ▲0.91 | 40.62 ▲3.69 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▼0.01 | 33.83 ▼5.68 | 34.10 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.03 ▼0.65 | 669.37 ▲44.31 | 64.43 ▲16.37 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▲0.01 | 93.54 ▼8.18 | 42.88 ▲2.90 |
Peentify /wp-admin/options-general.php?page=peentify-settings | 842 | 2.04 | 24.39 | 24.34 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- 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)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/peentify-woocommerce/peentify_woocommerce.php:189
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce with peentify, peentify-woocommerce, integration, woocommerce, peentify
peentify-woocommerce/peentify_woocommerce.php 92% from 13 tests
The main PHP script in "Peentify WooCommerce" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("peentify-woocommerce.php" instead of "peentify_woocommerce.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
Success! There were no dangerous files found in this plugin183 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 113 | 183 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin