Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼14.79ms] Passed 4 tests
Analyzing server-side resources used by Switch jQuery Version
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.03 | 37.31 ▼3.80 |
Dashboard /wp-admin | 3.37 ▼0.01 | 46.98 ▼19.02 |
Posts /wp-admin/edit.php | 3.42 ▲0.03 | 48.77 ▲3.41 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.03 | 80.91 ▼33.43 |
Media Library /wp-admin/upload.php | 3.29 ▲0.03 | 35.57 ▼2.89 |
Switch jQuery Version /wp-admin/options-general.php?page=switch-jq-version-options | 3.26 | 30.31 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: no files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
switch_jq_version_customise_url |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
switch_jq_version_version |
switch_jq_version_cdn |
Browser metrics Passed 4 tests
An overview of browser requirements for Switch jQuery Version
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲156 | 13.76 ▼0.48 | 11.38 ▲9.68 | 38.06 ▼5.60 |
Dashboard /wp-admin | 2,207 ▲22 | 5.84 ▼0.04 | 104.19 ▼3.32 | 38.45 ▼1.79 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.01 | 33.61 ▼6.89 | 38.23 ▲3.23 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.21 ▲0.11 | 688.31 ▲7.95 | 56.00 ▲2.43 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.14 | 96.48 ▼16.65 | 41.12 ▼7.02 |
Switch jQuery Version /wp-admin/options-general.php?page=switch-jq-version-options | 876 | 2.02 | 24.82 | 30.54 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- theysaidso_admin_options
- switch_jq_version_customise_url
- widget_recent-posts
- switch_jq_version_version
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- switch_jq_version_cdn
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× 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/switch-jq-version/options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/switch-jq-version/switch-jq-version.php:34
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: jquery cdn, jquery, blog, jquery version
switch-jq-version/switch-jq-version.php Passed 13 tests
The principal PHP file in "Switch jQuery Version" v. 1.2.2 is loaded by WordPress automatically on each request
65 characters long description:
Change your jQuery version and the CDN of jQuery just by onclick!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected226 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 25 | 122 |
PO File | 2 | 33 | 34 | 104 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin