Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼1.40ms] Passed 4 tests
Server-side resources used by DeMomentSomTres WooCommerce HideHidden
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 40.88 ▼2.36 |
Dashboard /wp-admin | 3.73 ▲0.43 | 45.98 ▲0.64 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 52.06 ▲5.61 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 94.73 ▼2.95 |
Media Library /wp-admin/upload.php | 3.59 ▲0.37 | 35.54 ▼0.94 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.66 | 33.59 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DeMomentSomTres WooCommerce HideHidden
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲74 | 13.32 ▼1.24 | 4.27 ▲2.33 | 43.28 ▼4.44 |
Dashboard /wp-admin | 2,234 ▲46 | 5.83 ▲0.95 | 105.07 ▼8.30 | 43.48 ▼0.75 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.05 ▲0.01 | 41.48 ▲0.69 | 40.17 ▲4.47 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.36 ▲0.54 | 626.25 ▼18.20 | 51.44 ▲2.24 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.24 ▲0.06 | 98.59 ▲1.73 | 46.30 ▲4.71 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 959 | 2.06 | 26.34 | 32.64 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-wchidehidden/lib/class-tgm-plugin-activation.php:1910
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-wchidehidden/lib/class-tgm-plugin-activation.php:1910
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: hidden product, woocommerce, addtocart
demomentsomtres-wchidehidden/dms3-woocommerce-hidehidden.php 77% from 13 tests
The primary PHP file in "DeMomentSomTres WooCommerce HideHidden" version 20171106... is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "20171106...")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("demomentsomtres-wchidehidden.php" instead of "dms3-woocommerce-hidehidden.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
No dangerous file extensions were detected1,772 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 478 | 1,476 | 1,739 |
Markdown | 1 | 21 | 0 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 38.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 6 | 6.06% |
▷ Public methods | 79 | 79.80% |
▷ Protected methods | 20 | 20.20% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin