Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/developer-code-editor/plugin-loader.php+14
Undefined index: action
Server metrics [RAM: ▼1.94MB] [CPU: ▼53.67ms] Passed 4 tests
An overview of server-side resources used by Developer Code Editor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.58 ▼33.62 |
Dashboard /wp-admin | 2.07 ▼1.24 | 5.41 ▼43.23 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 6.03 ▼40.15 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.65 ▼97.67 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.11 ▼29.23 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Developer Code Editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.33 ▼1.05 | 4.77 ▲2.95 | 43.17 ▲2.69 |
Dashboard /wp-admin | 2,203 ▲18 | 4.92 ▼0.99 | 95.41 ▼3.94 | 39.02 ▼7.21 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.13 ▲0.16 | 40.35 ▼1.61 | 39.22 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,537 ▲1 | 23.50 ▲0.59 | 682.94 ▲40.69 | 57.79 ▼10.66 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.02 | 102.22 ▲3.82 | 43.13 ▼0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/developer-code-editor/plugin-loader.php+14
Undefined index: action
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Developer_Code_Editor' not found in wp-content/plugins/developer-code-editor/plugin-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/developer-code-editor/plugin-loader.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== developer-code-editor ===
) - Screenshots: Screenshot #1 (Plugin Screenshot) image missing
developer-code-editor/plugin-loader.php 92% from 13 tests
Analyzing the main PHP file in "Developer Code Editor" version 1.3
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("developer-code-editor.php" instead of "plugin-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,018 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 229 | 234 | 3,582 |
HTML | 5 | 20 | 1 | 208 |
PHP | 3 | 76 | 79 | 122 |
CSS | 3 | 14 | 2 | 106 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 1 | 8.33% |
▷ Private methods | 2 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin