Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.27ms] Passed 4 tests
This is a short check of server-side resources used by CSS and JS Enqueuer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.14 ▼0.13 |
Dashboard /wp-admin | 3.38 ▲0.08 | 54.26 ▲3.27 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 51.51 ▲0.30 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.36 ▼5.43 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.94 ▲0.20 |
Enqueue CSS, JS /wp-admin/themes.php?page=css_and_js_enqueuer_options | 3.27 | 31.46 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for CSS and JS Enqueuer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.38 ▼0.25 | 2.28 ▲0.30 | 45.32 ▲1.54 |
Dashboard /wp-admin | 2,199 ▲25 | 5.61 ▼0.04 | 91.27 ▼8.95 | 42.98 ▲0.43 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.09 ▲0.06 | 35.50 ▼1.27 | 34.70 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,534 ▲3 | 22.92 ▼0.50 | 686.55 ▼12.43 | 59.43 ▼2.87 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.25 ▼0.00 | 93.66 ▼30.11 | 42.89 ▼5.03 |
Enqueue CSS, JS /wp-admin/themes.php?page=css_and_js_enqueuer_options | 1,111 | 2.60 | 47.94 | 44.36 |
Uninstaller [IO: ▲0.00MB] [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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/css-and-js-enqueuer/css-and-js-enqueuer.php:12
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: js, css, visual editor
css-and-js-enqueuer/css-and-js-enqueuer.php Passed 13 tests
Analyzing the main PHP file in "CSS and JS Enqueuer" version 0.2.1
84 characters long description:
CSS and JS Enqueuer plugin will enable to enqueue external CSS and JS, and edit it.
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
Success! There were no dangerous files found in this plugin327 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 11 | 261 |
PO File | 1 | 19 | 24 | 51 |
JavaScript | 1 | 6 | 5 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 22 | |
▷ Named functions | 22 | 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