Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼138.93ms] Passed 4 tests
A check of server-side resources used by Cache External Scripts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 47.76 ▲19.30 |
Dashboard /wp-admin | 3.17 ▲0.11 | 1,050.22 ▲1,000.57 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 45.02 ▼5.47 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 97.50 ▼563.34 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 33.61 ▼6.20 |
Cache External Scripts /wp-admin/options-general.php?page=cache-external-scripts | 3.00 | 61.33 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Cache External Scripts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.19 ▲0.58 | 10.39 ▲2.57 | 52.99 ▼2.53 |
Dashboard /wp-admin | 2,978 ▲44 | 5.91 ▲0.01 | 146.50 ▼4.88 | 122.95 ▼0.21 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.02 | 66.50 ▼3.36 | 91.27 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.80 ▲0.06 | 388.33 ▼25.15 | 113.88 ▼4.40 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.00 | 173.02 ▲26.65 | 126.19 ▼0.04 |
Cache External Scripts /wp-admin/options-general.php?page=cache-external-scripts | 1,027 | 2.09 | 59.67 | 74.61 |
Uninstaller [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=cache-external-scripts
- > Notice in wp-content/plugins/cache-external-scripts/cache-external-scripts.php+126
Undefined index: action
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cache-external-scripts/uninstall.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/cache-external-scripts/cache-external-scripts.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: local, google analytics, caching, cache, javascripts...
cache-external-scripts/cache-external-scripts.php Passed 13 tests
The main PHP script in "Cache External Scripts" version 0.4 is automatically included on every request by WordPress
133 characters long description:
This plugin allows you to cache the Google Analytics JavaScript file to be cached for more than 2 hours, for a better PageSpeed score
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected106 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 23 | 106 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin