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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.11ms] Passed 4 tests
This is a short check of server-side resources used by TMA-WC-ProductTargeting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.07 ▼2.69 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.59 ▲0.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.73 ▲2.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.97 ▲8.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.76 ▼0.93 |
WC ProductTargeting /wp-admin/admin.php?page=tma-producttargeting-setting | 3.22 | 30.37 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by TMA-WC-ProductTargeting
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.33 ▼1.27 | 4.15 ▲2.24 | 41.82 ▼2.29 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▼0.10 | 99.23 ▼14.18 | 38.44 ▼8.47 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.06 ▲0.01 | 38.88 ▲2.76 | 35.04 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 18.20 ▼4.86 | 629.39 ▼25.27 | 62.08 ▼9.84 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.00 | 95.23 ▲0.21 | 42.29 ▼0.95 |
WC ProductTargeting /wp-admin/admin.php?page=tma-producttargeting-setting | 826 | 2.02 | 23.59 | 27.63 |
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
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tma-wc-producttargeting/pages/documentation.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function TMA\\is_admin() in wp-content/plugins/tma-wc-producttargeting/includes/tma_product_targeting_settingspage.php:66
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 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
2 plugin tags: content targeting, product targeting
tma-wc-producttargeting/tma-wc-producttargeting.php Passed 13 tests
This is the main PHP file of "TMA-WC-ProductTargeting" version 0.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
ProductTargeting plugin for WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,041 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 711 | 42 | 1,935 |
HTML | 1 | 125 | 0 | 567 |
CSS | 2 | 45 | 5 | 273 |
PHP | 7 | 66 | 172 | 253 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin