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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.91ms] Passed 4 tests
This is a short check of server-side resources used by Verfacto Marketing Analytics for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.71 ▼1.98 |
Dashboard /wp-admin | 3.31 ▲0.00 | 41.94 ▼4.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.29 ▲3.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.81 ▼24.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.73 ▼0.21 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Verfacto Marketing Analytics for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.80 ▲0.15 | 1.77 ▼0.05 | 45.35 ▼2.93 |
Dashboard /wp-admin | 2,203 ▲15 | 4.87 ▼0.03 | 100.49 ▼3.33 | 37.38 ▼6.60 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▲0.01 | 38.90 ▲0.69 | 34.39 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 22.76 ▲5.08 | 654.89 ▼37.09 | 61.18 ▲4.30 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.18 ▲0.01 | 102.09 ▲4.15 | 44.33 ▲3.11 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/verfacto/includes/class-verfacto-plugin-deactivator.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/verfacto/admin/pages/verfacto-plugin-instalation-page.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/verfacto/includes/class-verfacto-plugin-handle-installation.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: analytics, catalog, shop
verfacto/verfacto-plugin.php 85% from 13 tests
The entry point to "Verfacto Marketing Analytics for WooCommerce" version 1.0.18 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("verfacto.php" instead of "verfacto-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,131 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 273 | 556 | 857 |
CSS | 1 | 28 | 6 | 203 |
JavaScript | 1 | 12 | 3 | 71 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 5 | 8.62% |
▷ Public methods | 37 | 63.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 36.21% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin