Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.58ms] Passed 4 tests
A check of server-side resources used by Redpic JS&CSS Optimizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.76 | 63.32 ▲18.85 |
Dashboard /wp-admin | 3.40 ▲0.09 | 49.36 ▲0.29 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.30 ▼2.01 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.31 ▼11.89 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.09 ▲3.31 |
Redpic JS&CSS Optimizer /wp-admin/options-general.php?page=redpic-js-css-optimizer | 3.29 | 31.41 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
redpic-js-css-optimizer |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Redpic JS&CSS Optimizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.70 ▼0.71 | 2.15 ▲0.11 | 41.42 ▼2.48 |
Dashboard /wp-admin | 2,210 ▲22 | 4.81 ▼0.05 | 111.90 ▼3.79 | 42.90 ▼1.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 37.09 ▼3.86 | 32.22 ▼8.62 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 18.32 ▼4.84 | 610.96 ▼14.69 | 66.00 ▲16.30 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.22 ▲0.03 | 98.44 ▼5.10 | 45.67 ▼2.17 |
Redpic JS&CSS Optimizer /wp-admin/options-general.php?page=redpic-js-css-optimizer | 805 | 2.03 | 26.05 | 28.43 |
Uninstaller [IO: ▲0.34MB] [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
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- redpic-js-css-optimizer
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
10 plugin tags: optimizing, google pagespeed, optimize, caching, performance...
redpic-js-css-optimizer/redpic-js-css-optimizer.php Passed 13 tests
This is the main PHP file of "Redpic JS&CSS Optimizer" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
16 characters long description:
js-css optimizer
Code Analysis Passed 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
There were no executable files found in this plugin415 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 43 | 130 | 415 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 5 | 26.32% |
▷ Public methods | 10 | 52.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 47.37% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.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
No PNG files were detected