Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.04ms] Passed 4 tests
A check of server-side resources used by Sublime Custom JS Editor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.82 ▼2.53 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.17 ▼4.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.96 ▲1.41 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.19 ▼10.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.72 ▲3.26 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Sublime Custom JS Editor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.41 ▼0.20 | 1.71 ▼0.14 | 44.82 ▼1.92 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲0.04 | 111.61 ▼8.30 | 44.88 ▲1.29 |
Posts /wp-admin/edit.php | 2,093 ▲25 | 2.17 ▲0.12 | 36.33 ▲1.11 | 31.67 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.37 ▲0.43 | 644.48 ▲38.00 | 67.69 ▲19.49 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.27 ▲0.03 | 101.13 ▼11.49 | 40.61 ▼2.99 |
Sublime Custom js /wp-admin/sublime-custom-js-editor.php | 26 | 0.44 | 0.11 | 17.22 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/sublime-custom-js-editor/inc/sublimejsedit_function.php
- > /wp-content/plugins/sublime-custom-js-editor/sublime-custom-js-editor.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/sublime-custom-js-editor.php
- > Network (severe)
wp-admin/sublime-custom-js-editor.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: sublime text, editor, js editor, custom js, js...
sublime-custom-js-editor/sublime-custom-js-editor.php 92% from 13 tests
"Sublime Custom JS Editor" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin13,099 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 1,607 | 3,086 | 12,500 |
CSS | 7 | 73 | 27 | 468 |
PHP | 2 | 28 | 36 | 131 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 8 | |
▷ Named functions | 8 | 100.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