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.01MB] [CPU: ▼2.41ms] Passed 4 tests
Server-side resources used by MOC - Related Product By Segments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.61 ▼1.92 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.95 ▼6.49 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.86 ▲1.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.00 ▼3.13 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.80 ▲1.89 |
MRPBS Options /wp-admin/admin.php?page=mrpbs_settings | 3.20 | 34.37 |
About /wp-admin/admin.php?page=mrpbs_about | 3.20 | 35.66 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for MOC - Related Product By Segments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.62 ▼0.67 | 1.67 ▼0.20 | 42.99 ▼6.28 |
Dashboard /wp-admin | 2,233 ▲42 | 4.85 ▼1.05 | 103.09 ▼8.70 | 38.78 ▼3.95 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 1.99 ▼0.02 | 35.73 ▼1.89 | 30.63 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 17.62 ▼0.01 | 668.78 ▼7.87 | 58.65 ▲5.00 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.24 ▲0.03 | 96.87 ▼1.64 | 42.71 ▼2.20 |
MRPBS Options /wp-admin/admin.php?page=mrpbs_settings | 929 | 2.06 | 25.85 | 27.11 |
About /wp-admin/admin.php?page=mrpbs_about | 808 | 2.05 | 27.06 | 27.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 3× 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/moc-related-product-by-segments/core/admin/add_admin_menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moc-related-product-by-segments/core/admin/add_admin_menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moc-related-product-by-segments/core/inc/segments-product.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
4 plugin tags: segments, woocommerce, related product, product by segments
moc-related-product-by-segments/moc-related-product-by-segments.php 92% from 13 tests
The entry point to "MOC - Related Product By Segments" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/language/" does not exist
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
Success! There were no dangerous files found in this plugin197 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 22 | 24 | 197 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 5 | |
▷ Named functions | 5 | 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
No PNG images were found in this plugin