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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.09ms] Passed 4 tests
A check of server-side resources used by Portugal CTT Tracking for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.42 ▼0.26 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.25 ▼5.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.02 ▲4.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.54 ▼19.03 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.79 ▲0.10 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 136 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Portugal CTT Tracking for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲208 | 13.24 ▼1.44 | 1.60 ▼0.22 | 44.20 ▼5.72 |
Dashboard /wp-admin | 2,352 ▲164 | 5.16 ▼0.74 | 98.49 ▼15.30 | 86.75 ▲38.39 |
Posts /wp-admin/edit.php | 2,232 ▲143 | 2.07 ▲0.08 | 34.49 ▼1.68 | 33.31 ▼4.49 |
Add New Post /wp-admin/post-new.php | 1,643 ▲129 | 17.44 ▼0.19 | 731.43 ▲125.32 | 63.42 ▲9.53 |
Media Library /wp-admin/upload.php | 1,534 ▲149 | 4.23 ▲0.12 | 94.38 ▼1.33 | 76.42 ▲35.90 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_general.php
- > /wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/example_extract_html.php
- > /wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/example_advanced_selector.php
- > /wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/example_basic_selector.php
- > /wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/example_callback.php
- > /wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_imdb.php
- > /wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_slashdot.php
- > /wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/example_modify_contents.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'innertext' of non-object in wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_imdb.php on line 12
- > PHP Warning
include_once(): Failed opening 'simple_html_dom.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_general.php on line 2
- > PHP Notice
Trying to get property 'plaintext' of non-object in wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_slashdot.php on line 13
- > PHP Notice
Trying to get property 'plaintext' of non-object in wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/example_basic_selector.php on line 33
- > PHP Notice
Trying to get property 'plaintext' of non-object in wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_slashdot.php on line 11
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_digg.php on line 36
- > PHP Notice
Undefined variable: ret in wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_digg.php on line 24
- > post
Array()
- > PHP Warning
include_once(simple_html_dom.php): failed to open stream: No such file or directory in wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/simplehtmldom_1_9/example/scraping/example_scraping_general.php on line 2
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 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
8 plugin tags: ecommerce, tracking, woocommerce, delivery, shipping...
portugal-ctt-tracking-woocommerce/portugal-ctt-tracking-woocommerce.php Passed 13 tests
The principal PHP file in "Portugal CTT Tracking for WooCommerce" v. 2.0.2 is loaded by WordPress automatically on each request
137 characters long description:
Lets you associate a tracking code with a WooCommerce order so that both the store owner and the client can track the order sent with CTT
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected4,615 lines of code in 131 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 479 | 472 | 2,648 |
Markdown | 110 | 563 | 0 | 1,769 |
YAML | 1 | 6 | 0 | 124 |
XML | 2 | 0 | 0 | 59 |
CSS | 1 | 1 | 0 | 8 |
HTML | 1 | 1 | 0 | 6 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 158.00 |
▷ Minimum class complexity | 90.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 5.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 114 | |
▷ Static methods | 2 | 1.75% |
▷ Public methods | 98 | 85.96% |
▷ Protected methods | 15 | 13.16% |
▷ Private methods | 1 | 0.88% |
Functions | 19 | |
▷ Named functions | 17 | 89.47% |
▷ Anonymous functions | 2 | 10.53% |
Constants | 24 | |
▷ Global constants | 24 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected