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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.30ms] Passed 4 tests
An overview of server-side resources used by Scripts and Styles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.47 ▼0.58 |
Dashboard /wp-admin | 3.34 ▼0.00 | 51.30 ▼18.48 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.29 ▲2.52 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.61 ▼19.22 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.90 ▲1.09 |
Scripts and Styles /wp-admin/options-general.php?page=ScriptsAndStylesBySL_options | 3.21 | 31.05 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Scripts and Styles
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.10 | 1.61 ▼0.12 | 43.86 ▲1.07 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.97 | 96.08 ▼21.23 | 39.40 ▼9.00 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▲0.05 | 36.15 ▲1.92 | 31.64 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 23.17 ▲5.48 | 634.59 ▼24.76 | 58.79 ▲6.37 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.27 ▲0.04 | 95.65 ▼2.41 | 40.41 ▼1.93 |
Scripts and Styles /wp-admin/options-general.php?page=ScriptsAndStylesBySL_options | 888 | 2.05 | 21.85 | 33.40 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
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/options-general.php?page=ScriptsAndStylesBySL_options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=ScriptsAndStylesBySL_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/scripts-and-styles/scripts-and-styles.php:183
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
scripts-and-styles/scripts-and-styles.php Passed 13 tests
The main PHP file in "Scripts and Styles" ver. 1.0.12 adds more information about the plugin and also serves as the entry point for this plugin
128 characters long description:
Add arbitrary JavaScript and CSS files to your WordPress site. Encourages best practices for site performance and compatibility.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin161 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 13 | 161 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 7 | |
▷ Static methods | 7 | 100.00% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 42.86% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin