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: ▲4.71MB] [CPU: ▲41.77ms] Passed 4 tests
An overview of server-side resources used by URLsLab
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.85 ▲4.38 | 61.58 ▲15.17 |
Dashboard /wp-admin | 8.14 ▲4.83 | 99.01 ▲46.23 |
Posts /wp-admin/edit.php | 8.20 ▲4.84 | 100.29 ▲60.96 |
Add New Post /wp-admin/post-new.php | 10.83 ▲4.95 | 142.25 ▲52.40 |
Media Library /wp-admin/upload.php | 7.99 ▲4.76 | 87.69 ▲53.27 |
Server storage [IO: ▲18.74MB] [DB: ▲0.06MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,808 new files
Database: 41 new tables, 146 new options
New tables |
---|
wp_urlslab_generator_shortcodes |
wp_urlslab_related_urls |
wp_urlslab_urls_map |
wp_urlslab_generator_tasks |
wp_urlslab_labels |
wp_urlslab_serp_positions |
wp_urlslab_serp_domains |
wp_urlslab_search_replace |
wp_urlslab_log_notfound |
wp_urlslab_cache_rules |
... |
New WordPress options |
---|
urlslab-relres-show-sum |
urlslab_js_max_size |
urlslab_img_lazy_placeholder |
can_compress_scripts |
urlslab_auto_sum_ext_links |
urlslab_avif_types |
urlslab_tw_player_width |
widget_recent-comments |
urlslab_css_max_size |
urlslab_tw_googleplay_name |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for URLsLab
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,230 ▲468 | 16.43 ▲2.27 | 10.41 ▲8.64 | 37.81 ▼6.86 |
Dashboard /wp-admin | 2,388 ▲211 | 6.92 ▲1.30 | 126.79 ▲22.38 | 101.35 ▲59.18 |
Posts /wp-admin/edit.php | 2,357 ▲257 | 3.60 ▲1.63 | 63.19 ▲26.10 | 60.12 ▲25.40 |
Add New Post /wp-admin/post-new.php | 1,616 ▲90 | 25.52 ▲2.33 | 634.66 ▼23.90 | 34.23 ▼17.03 |
Media Library /wp-admin/upload.php | 1,474 ▲77 | 4.99 ▲0.80 | 85.10 ▼15.34 | 83.37 ▲38.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/urlslab/vendor/mtdowling/jmespath.php/bin/jp.php
- > /wp-content/plugins/urlslab/uninstall.php
- > /wp-content/plugins/urlslab/admin/templates/page/urlslab-admin-dashboard.php
- 791× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Urlslab_Widget' not found in wp-content/plugins/urlslab/includes/widget/class-urlslab-widget-web-vitals.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/urlslab/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Urlslab_Vendor\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/urlslab/vendor_prefixed/urlslab-client/urlslab/urlslab-php-sdk/test/Api/CreditsApiTest.php:40
- > PHP Fatal error
Uncaught Error: Interface 'Urlslab_Vendor\\OpenAPI\\Client\\Model\\ModelInterface' not found in wp-content/plugins/urlslab/vendor_prefixed/urlslab-client/urlslab/urlslab-php-sdk/lib/Model/DomainScheduleScheduleConf.php:40
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/urlslab/vendor/aws/aws-sdk-php/src/Exception/InvalidJsonException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Urlslab_Vendor\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/urlslab/vendor_prefixed/urlslab-client/urlslab/urlslab-php-sdk/test/Model/DomainDataRetrievalVideoCaptionResponseTest.php:39
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/urlslab/table-names.php on line 43
- > PHP Fatal error
Uncaught Error: Interface 'Urlslab_Vendor\\OpenAPI\\Client\\Model\\ModelInterface' not found in wp-content/plugins/urlslab/vendor_prefixed/urlslab-client/urlslab/urlslab-php-sdk/lib/Model/DomainUserCreditCreditEvent.php:40
- > PHP Fatal error
Uncaught Error: Interface 'OpenAPI\\Client\\Model\\ModelInterface' not found in wp-content/plugins/urlslab/vendor/urlslab/urlslab-php-sdk/lib/Model/DomainDataRetrievalKeywordAnalyticsResponse.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Urlslab_Vendor\\Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/urlslab/vendor_prefixed/urlslab-client/guzzlehttp/psr7/src/UploadedFile.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: optimizer, database, seo, gpt, cache...
urlslab/urlslab.php Passed 13 tests
The principal PHP file in "URLsLab" v. 2.112.2 is loaded by WordPress automatically on each request
102 characters long description:
URLsLab WordPress Plugin to optimize your website for search engines and enhance automatically content
Code Analysis 97% from 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 detected361,700 lines of code in 1,930 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 128 | 410 | 4,481 | 177,860 |
PHP | 1,233 | 20,858 | 74,015 | 136,463 |
JSX | 223 | 2,458 | 352 | 21,568 |
CSS | 19 | 406 | 32 | 8,154 |
Markdown | 45 | 2,517 | 1 | 6,609 |
Sass | 79 | 1,539 | 66 | 6,265 |
JSON | 46 | 1 | 0 | 1,800 |
TypeScript | 19 | 103 | 74 | 958 |
SVG | 121 | 0 | 2 | 930 |
C | 1 | 118 | 25 | 668 |
YAML | 6 | 28 | 3 | 151 |
XML | 5 | 6 | 0 | 101 |
Bourne Shell | 2 | 31 | 8 | 74 |
reStructuredText | 1 | 35 | 29 | 59 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 139)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 229.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 139.00 |
Code structure | ||
---|---|---|
Namespaces | 125 | |
Interfaces | 99 | |
Traits | 24 | |
Classes | 978 | |
▷ Abstract classes | 47 | 4.81% |
▷ Concrete classes | 931 | 95.19% |
▷ Final classes | 89 | 9.56% |
Methods | 11,346 | |
▷ Static methods | 1,803 | 15.89% |
▷ Public methods | 9,390 | 82.76% |
▷ Protected methods | 486 | 4.28% |
▷ Private methods | 1,470 | 12.96% |
Functions | 2,108 | |
▷ Named functions | 143 | 6.78% |
▷ Anonymous functions | 1,965 | 93.22% |
Constants | 1,353 | |
▷ Global constants | 60 | 4.43% |
▷ Class constants | 1,293 | 95.57% |
▷ Public constants | 1,236 | 95.59% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.31MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/dist/assets/wordpress-x6kt4wnaug.png | 2.33KB | 2.29KB | ▼ 1.68% |
admin/src/assets/images/bots/yandex.png | 2.24KB | 1.35KB | ▼ 39.66% |
admin/src/assets/images/os/WIN.png | 0.81KB | 0.78KB | ▼ 3.72% |
admin/src/assets/images/bots/amazon.png | 2.32KB | 1.55KB | ▼ 33.07% |
admin/src/assets/images/os/IPA.png | 1.08KB | 1.44KB | 0.00% |