Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.66ms] Passed 4 tests
This is a short check of server-side resources used by WP CSS, Javascript and HTML
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 36.80 ▼2.08 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.62 ▼0.90 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.13 ▲1.72 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.14 ▼15.33 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.63 ▼0.33 |
Server storage [IO: ▲5.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 585 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP CSS, Javascript and HTML
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲148 | 17.99 ▲3.68 | 1.84 ▲0.10 | 44.32 ▼7.33 |
Dashboard /wp-admin | 2,267 ▲79 | 9.45 ▲3.55 | 133.71 ▲33.46 | 40.24 ▼2.29 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 5.50 ▲3.47 | 51.26 ▲9.83 | 35.18 ▲0.09 |
Add New Post /wp-admin/post-new.php | 6,498 ▲4,953 | 21.88 ▲3.70 | 944.73 ▲344.99 | 38.76 ▼20.78 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 8.24 ▲4.05 | 109.44 ▲13.08 | 39.73 ▼4.49 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-css-and-js-code/wp-css-js-code.php
- > /wp-content/plugins/wp-css-and-js-code/admin.php
- > /wp-content/plugins/wp-css-and-js-code/inject.php
- > /wp-content/plugins/wp-css-and-js-code/templates/feature-off.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WPCSSJSCODE_POSTMETA_GET() in wp-content/plugins/wp-css-and-js-code/templates/globalcssjs.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-css-and-js-code/templates/cssjs.php:1
- > PHP Fatal error
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in wp-css-and-js-code/assets to your readme.txt
- Requires php: Invalid plugin version format
wp-css-and-js-code/wp-css-js-code.php 85% from 13 tests
This is the main PHP file of "WP CSS, Javascript and HTML" version 2.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-css-and-js-code.php" instead of "wp-css-js-code.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin116,793 lines of code in 573 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 303 | 12,135 | 20,841 | 88,755 |
HTML | 182 | 3,842 | 11 | 23,050 |
CSS | 72 | 494 | 285 | 2,756 |
Markdown | 5 | 771 | 0 | 1,648 |
PHP | 7 | 87 | 64 | 508 |
JSON | 1 | 0 | 0 | 47 |
SVG | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 0 | 1 | 5 |
YAML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 14 | |
▷ Named functions | 14 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/codemirror/doc/yinyang.png | 4.52KB | 2.03KB | ▼ 55.19% |
libs/codemirror/doc/logo.png | 9.09KB | 4.10KB | ▼ 54.95% |
images/button-PayPal-donate.png | 22.75KB | 7.37KB | ▼ 67.62% |