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.02MB] [CPU: ▼8.27ms] Passed 4 tests
A check of server-side resources used by WP CodeMirror Themes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.60 ▼1.92 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.41 ▼12.69 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 42.73 ▼5.78 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.14 ▼12.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.35 ▲3.29 |
CodeMirror Themes /wp-admin/tools.php?page=codemirror_theme | 3.23 | 29.08 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP CodeMirror Themes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 15.06 ▲0.84 | 1.56 ▼0.11 | 44.53 ▲6.38 |
Dashboard /wp-admin | 2,206 ▲26 | 6.56 ▲0.86 | 126.68 ▲41.65 | 39.14 ▼2.63 |
Posts /wp-admin/edit.php | 2,095 ▼8 | 3.38 ▲1.42 | 72.19 ▲37.43 | 35.78 ▲6.58 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 19.27 ▼3.87 | 647.66 ▼13.06 | 66.65 ▲12.18 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 5.12 ▲0.93 | 146.44 ▲49.84 | 47.16 ▲1.29 |
CodeMirror Themes /wp-admin/tools.php?page=codemirror_theme | 1,460 | 3.49 | 78.64 | 39.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
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: Call to undefined function esc_attr() in wp-content/plugins/wp-codemirror-themes/includes/theme_list_select.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-codemirror-themes/includes/options_page_template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: codemirror, codeeditor, admin
wp-codemirror-themes/wp-codemirror-themes.php 92% from 13 tests
The primary PHP file in "WP CodeMirror Themes" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Success! There were no dangerous files found in this plugin1,870 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 55 | 336 | 254 | 1,710 |
PHP | 3 | 16 | 53 | 132 |
Markdown | 1 | 13 | 0 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
No PNG files were detected