Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.70ms] Passed 4 tests
A check of server-side resources used by Better Code Editing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.38 ▼10.45 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.37 ▼2.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.38 ▲2.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 98.95 ▼3.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.75 ▲4.53 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Better Code Editing
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.38 | 1.70 ▼0.14 | 42.05 ▼3.99 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲0.01 | 113.38 ▲3.45 | 42.73 ▼1.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.00 | 35.95 ▼0.19 | 31.59 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.23 ▲0.67 | 600.48 ▼117.76 | 53.47 ▼15.67 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.01 | 95.22 ▼6.62 | 46.32 ▼0.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-code-editing/wp-includes/customize-manager-addendum.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-code-editing/wp-admin/user-edit-addendum.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-code-editing/wp-includes/script-loader-addendum.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-code-editing/wp-includes/widgets-addendum.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-code-editing/wp-includes/script-loader-addendum.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Custom_HTML' not found in wp-content/plugins/better-code-editing/wp-includes/widgets/class-wp-widget-custom-html-codemirror.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/better-code-editing/wp-admin/file-editor-addendum.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-code-editing/wp-admin/includes/user.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tested up to: Invalid plugin version format
better-code-editing/better-code-editing.php Passed 13 tests
The main PHP file in "Better Code Editing" ver. 0.7.0 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Code highlighting and linting, powered by CodeMirror.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin27,482 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 4,278 | 12,144 | 20,544 |
CSS | 7 | 1,178 | 268 | 6,253 |
PHP | 9 | 90 | 228 | 685 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 2 | 40.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin