Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.18MB] [CPU: ▼153.32ms] Passed 4 tests
Analyzing server-side resources used by WP Inline Cacher
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▲0.02 | 25.24 ▲4.71 |
Dashboard /wp-admin | 2.85 ▼0.20 | 29.29 ▼20.01 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.57 ▲3.88 |
Add New Post /wp-admin/post-new.php | 4.98 ▼0.45 | 81.13 ▼583.02 |
Media Library /wp-admin/upload.php | 2.93 ▼0.07 | 28.08 ▼14.11 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP Inline Cacher
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,672 ▲76 | 15.86 ▲0.19 | 8.97 ▲0.83 | 49.58 ▼3.54 |
Dashboard /wp-admin | 2,960 ▲26 | 5.90 ▼0.22 | 139.20 ▼8.17 | 116.71 ▼3.19 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.69 ▼0.00 | 68.24 ▲0.05 | 93.40 ▼5.55 |
Add New Post /wp-admin/post-new.php | 1,605 ▲105 | 19.73 ▲1.13 | 379.87 ▲1.65 | 111.93 ▼0.88 |
Media Library /wp-admin/upload.php | 1,808 ▼2 | 5.03 ▲0.01 | 147.86 ▼4.27 | 126.21 ▲13.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-inline-cacher/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-inline-cacher/functions.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: fast, performance, speed, service worker, caching...
wp-inline-cacher/wp-inline-cacher.php Passed 13 tests
The primary PHP file in "WP Inline Cacher" version 0.1.0 is used by WordPress to initiate all plugin functionality
89 characters long description:
Speed up your website by automatically inlining your stylesheets for first-time visitors.
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
There were no executable files found in this plugin180 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 9 | 8 | 128 |
PHP | 4 | 5 | 22 | 47 |
Markdown | 1 | 4 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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