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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.61ms] Passed 4 tests
An overview of server-side resources used by WP Emmet
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.93 ▼1.60 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.84 ▼13.13 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.19 ▼4.89 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 79.05 ▼22.83 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.43 ▲0.59 |
Emmet /wp-admin/options-general.php?page=wp-emmet | 3.32 | 31.24 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
wp-emmet-migration-version |
wp-emmet |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Emmet
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.71 ▼0.80 | 1.66 ▼0.13 | 44.53 ▲4.03 |
Dashboard /wp-admin | 2,230 ▲39 | 5.53 ▲0.64 | 116.05 ▲14.37 | 41.01 ▼1.33 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.36 ▲0.35 | 36.43 ▼4.43 | 34.27 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 17.91 ▼5.37 | 671.93 ▲6.76 | 36.47 ▼13.66 |
Media Library /wp-admin/upload.php | 1,409 ▲27 | 4.76 ▲0.56 | 99.89 ▲1.88 | 42.26 ▼5.21 |
Emmet /wp-admin/options-general.php?page=wp-emmet | 1,465 | 2.37 | 26.19 | 26.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- wp-emmet-migration-version
- wp-emmet
- theysaidso_admin_options
- 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
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
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-emmet/views/options.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-emmet/views/apply_for_textarea.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-emmet/views/apply_for_codemirror.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-emmet/WP/Emmet/Lang.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-emmet/langs/fake.php:5
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-emmet/wp-emmet.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-emmet ===
)
wp-emmet/wp-emmet.php Passed 13 tests
The main PHP script in "WP Emmet" version 0.3.4 is automatically included on every request by WordPress
36 characters long description:
Emmet (ex-Zen Coding) for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected24,118 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 4,056 | 7,718 | 22,519 |
CSS | 20 | 127 | 97 | 761 |
PHP | 14 | 160 | 390 | 720 |
PO File | 1 | 51 | 51 | 118 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 8 | 13.56% |
▷ Public methods | 53 | 89.83% |
▷ Protected methods | 6 | 10.17% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 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
No PNG files were detected