Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼2.71ms] Passed 4 tests
An overview of server-side resources used by Scripts n Styles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.71 ▼0.23 |
Dashboard /wp-admin | 3.86 ▲0.55 | 53.92 ▼5.22 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 38.09 ▼10.15 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 106.84 ▲11.17 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 38.85 ▲4.78 |
Scripts n Styles /wp-admin/tools.php?page=sns | 3.72 | 36.18 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
SnS_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Scripts n Styles
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.79 ▼0.60 | 1.80 ▼0.07 | 43.27 ▼0.47 |
Dashboard /wp-admin | 2,213 ▲25 | 5.83 ▲0.94 | 103.92 ▼17.35 | 39.43 ▼5.15 |
Posts /wp-admin/edit.php | 2,159 ▲73 | 2.67 ▲0.68 | 38.42 ▲1.15 | 37.61 ▲3.29 |
Add New Post /wp-admin/post-new.php | 4,326 ▲2,806 | 17.26 ▼5.76 | 718.74 ▲22.84 | 575.54 ▲514.62 |
Media Library /wp-admin/upload.php | 1,458 ▲70 | 4.80 ▲0.57 | 100.08 ▼2.24 | 41.67 ▼7.20 |
Scripts n Styles /wp-admin/tools.php?page=sns | 2,327 | 4.11 | 75.03 | 81.84 |
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 were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- SnS_options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/scripts-n-styles/scripts-n-styles.php:99
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/scripts-n-styles/includes/class-sns-list-usage.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/scripts-n-styles/includes/class-sns-list-usage.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/scripts-n-styles/includes/class-sns-list-usage.php on line 2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: admin, style, javascript, code, css...
scripts-n-styles/scripts-n-styles.php Passed 13 tests
This is the main PHP file of "Scripts n Styles" version 3.5.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
130 characters long description:
Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin7,921 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 814 | 1,327 | 5,043 |
PHP | 12 | 352 | 430 | 2,147 |
CSS | 5 | 1 | 1 | 731 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 37.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 5.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 89 | 89.00% |
▷ Public methods | 100 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu.png | 1.37KB | 0.29KB | ▼ 78.49% |
vendor/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
images/icon32.png | 1.72KB | 0.45KB | ▼ 73.85% |
vendor/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |