Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼10.81ms] Passed 4 tests
An overview of server-side resources used by WP Add Custom Css and Javascript
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.21 ▼7.50 |
Dashboard /wp-admin | 3.40 ▲0.06 | 47.98 ▼18.13 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 48.96 ▼2.41 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 86.97 ▼15.20 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.48 ▼0.68 |
Custom JS /wp-admin/admin.php?page=d3_custom_js | 3.30 | 33.65 |
Custom CSS /wp-admin/admin.php?page=d3_custom_css | 3.30 | 34.66 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Add Custom Css and Javascript
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲30 | 14.28 ▼0.08 | 1.65 ▼0.59 | 43.82 ▲0.74 |
Dashboard /wp-admin | 2,218 ▲43 | 5.62 ▼0.20 | 83.67 ▼36.20 | 38.64 ▼6.85 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.96 ▼0.07 | 39.19 ▲0.91 | 34.99 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 23.44 ▲0.37 | 709.79 ▲34.83 | 54.27 ▲3.17 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.18 ▼0.05 | 96.79 ▼20.46 | 41.48 ▼6.14 |
Custom JS /wp-admin/admin.php?page=d3_custom_js | 1,077 | 2.35 | 54.70 | 45.27 |
Custom CSS /wp-admin/admin.php?page=d3_custom_css | 1,074 | 2.52 | 49.97 | 38.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-add-custom-css-and-javascript/wp-add-custom-css-js.php:26
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/wp-add-custom-css-and-javascript/minify/src/CSS.php:17
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/wp-add-custom-css-and-javascript/minify/src/JS.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-add-custom-css-and-javascript/plugin-credit.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: css js wp custom css, wp add custom css and javascript, wp custom js, custom js, custom css
wp-add-custom-css-and-javascript/wp-add-custom-css-js.php 85% from 13 tests
The main PHP file in "WP Add Custom Css and Javascript" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-add-custom-css-and-javascript.php" instead of "wp-add-custom-css-js.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
Everything looks great! No dangerous files found in this plugin10,833 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,062 | 1,040 | 9,604 |
PHP | 7 | 278 | 811 | 902 |
CSS | 4 | 47 | 25 | 327 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 35.90% |
▷ Protected methods | 25 | 64.10% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 14 | 77.78% |
▷ Anonymous functions | 4 | 22.22% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/potent-logo.png | 7.60KB | 5.27KB | ▼ 30.74% |
images/D3-logics-Website-Design-development-jaipur-rajasthan-india.png | 44.12KB | 14.02KB | ▼ 68.22% |