Benchmarks
Plugin footprint 83% from 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.12MB] [CPU: ▼6.63ms] Passed 4 tests
Analyzing server-side resources used by CSS JS Files
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.78 ▲0.52 |
Dashboard /wp-admin | 3.42 ▲0.12 | 43.54 ▼4.72 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 45.24 ▼1.00 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 82.61 ▼19.70 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 35.30 ▼1.09 |
Editor /wp-admin/admin.php?page=css-js-files-editor | 3.29 | 28.03 |
CSS/JS Files /wp-admin/admin.php?page=css-js-files | 3.31 | 31.40 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 18 new options
New WordPress options |
---|
css_js_files_head_rules |
can_compress_scripts |
css_js_files_js_files |
css_js_files_css_rules |
css_js_files_body_rules |
css_js_files_footer_rules |
css_js_files_css_files |
widget_recent-posts |
db_upgraded |
css_js_files_js_admin |
... |
Browser metrics Passed 4 tests
CSS JS Files: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲134 | 14.37 ▲0.00 | 1.72 ▲0.08 | 41.11 ▲1.67 |
Dashboard /wp-admin | 2,237 ▲54 | 5.87 ▲0.90 | 112.15 ▲1.27 | 43.94 ▲2.26 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 2.02 ▲0.00 | 34.07 ▼5.73 | 29.23 ▼5.93 |
Add New Post /wp-admin/post-new.php | 6,415 ▲4,882 | 19.00 ▼4.20 | 879.63 ▲274.10 | 56.62 ▼2.08 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.24 ▼0.07 | 99.05 ▲2.06 | 40.23 ▼3.05 |
Editor /wp-admin/admin.php?page=css-js-files-editor | 937 | 2.03 | 34.85 | 28.50 |
CSS/JS Files /wp-admin/admin.php?page=css-js-files | 1,042 | 2.07 | 26.10 | 25.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 18 options in the database
- css_js_files_path
- css_js_files_css_links
- css_js_files_js_admin
- css_js_files_head_rules
- theysaidso_admin_options
- css_js_files_js_files
- css_js_files_footer_rules
- widget_theysaidso_widget
- can_compress_scripts
- css_js_files_css_files
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=css-js-files-editor
- > Notice in wp-content/plugins/css-js-files/css-js-files.php+108
Undefined index: file
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/css-js-files/css-js-files.php:15
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
css-js-files/css-js-files.php Passed 13 tests
The main PHP file in "CSS JS Files" ver. 1.4.6 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Add CSS files and/or CSS custom rules to any single page or post or globally
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin432 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 30 | 374 |
JavaScript | 1 | 7 | 1 | 50 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 79.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 36 | |
▷ Static methods | 36 | 100.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin