Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.03MB] [CPU: ▼33.08ms] Passed 4 tests
This is a short check of server-side resources used by SrcSet Responsive Images for Wordpress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.12 ▼2.88 |
Dashboard /wp-admin | 4.11 ▲0.77 | 24.26 ▼42.52 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 30.29 ▼14.80 |
Add New Post /wp-admin/post-new.php | 4.11 ▼1.77 | 27.43 ▼64.93 |
Media Library /wp-admin/upload.php | 4.11 ▲0.89 | 24.63 ▼10.05 |
SrcSet Settings /wp-admin/tools.php?page=tnsrc_set_options_options | 4.12 | 24.82 |
Server storage [IO: ▲6.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 426 new files
Database: no new tables, 8 new options
New WordPress options |
---|
redux-framework-tracking |
theysaidso_admin_options |
tnsrc_set_options-transients |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by SrcSet Responsive Images for Wordpress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.32 ▼0.94 | 1.82 ▲0.07 | 40.30 ▼3.31 |
Dashboard /wp-admin | 2,215 ▲27 | 5.89 ▲1.02 | 107.45 ▼14.62 | 43.06 ▼0.22 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.04 ▲0.03 | 39.95 ▲1.63 | 35.62 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.32 ▼5.09 | 618.13 ▼62.09 | 51.60 ▲8.33 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.24 ▲0.08 | 95.42 ▼0.78 | 42.58 ▼1.16 |
SrcSet Settings /wp-admin/tools.php?page=tnsrc_set_options_options | 1,875 | 11.41 | 326.66 | 56.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
- > Warning in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php+358
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- redux-framework-tracking
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- tnsrc_set_options-transients
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=tnsrc_set_options_options
- > Warning in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php+442
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/inc/p.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php on line 411
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php on line 358
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php on line 384
- > PHP Notice
Undefined variable: header in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/inc/p.php on line 219
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php on line 380
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/inc/fields/select/elusive-icons.php:312
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/truenorth-srcset/inc/class.tn-srcset-regen.php:46
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php on line 423
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/truenorth-srcset/tn-srcset.php:22
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php on line 442
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/tools.php?page=tnsrc_set_options_options
- > Javascript (severe) in unknown
/wp-content/plugins/truenorth-srcset/inc/ReduxFramework/ReduxCore/inc/fields/multi_text/field_multi_text.min.js?ver=1696808187 0:495 Uncaught TypeError: b.find(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: srcset attribute, retina images, responsive, srcset, retina...
truenorth-srcset/tn-srcset.php 85% from 13 tests
This is the main PHP file of "SrcSet Responsive Images for Wordpress" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("truenorth-srcset.php" instead of "tn-srcset.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected34,537 lines of code in 334 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 154 | 2,717 | 2,172 | 12,637 |
PHP | 77 | 3,491 | 5,413 | 11,794 |
LESS | 31 | 395 | 202 | 4,116 |
CSS | 40 | 296 | 148 | 3,811 |
Sass | 24 | 3 | 0 | 1,070 |
PO File | 1 | 223 | 293 | 544 |
SVG | 1 | 0 | 0 | 309 |
Markdown | 2 | 29 | 0 | 70 |
HTML | 1 | 8 | 0 | 60 |
Bourne Shell | 1 | 24 | 0 | 55 |
JSON | 1 | 0 | 0 | 36 |
YAML | 1 | 0 | 1 | 35 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 36.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 794.00 |
Average method complexity | 6.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 72 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 440 | |
▷ Static methods | 34 | 7.73% |
▷ Public methods | 366 | 83.18% |
▷ Protected methods | 42 | 9.55% |
▷ Private methods | 32 | 7.27% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
39 PNG files occupy 0.27MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/ReduxFramework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_f6cf3b_256x240.png | 8.68KB | 4.11KB | ▼ 52.68% |
inc/ReduxConfig/patterns/triangular_@2X.png | 0.21KB | 0.25KB | 0.00% |
inc/ReduxConfig/patterns/tree_bark.png | 41.37KB | 43.65KB | 0.00% |
inc/ReduxFramework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
inc/ReduxFramework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |