Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.66ms] Passed 4 tests
An overview of server-side resources used by Code Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 35.17 ▼7.97 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.62 ▼2.89 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.95 ▼3.00 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 94.20 ▲6.64 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.94 ▼0.79 |
Code Search /wp-admin/tools.php?page=ce-search | 3.24 | 31.75 |
Code Embed /wp-admin/options-general.php?page=ce-options | 3.28 | 30.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
artiss_code_embed |
Browser metrics Passed 4 tests
Code Embed: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲38 | 14.57 ▼0.17 | 1.56 ▼0.08 | 38.59 ▼6.32 |
Dashboard /wp-admin | 2,206 ▲32 | 5.61 ▼0.04 | 96.00 ▲5.82 | 42.41 ▼2.68 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 1.94 ▼0.16 | 39.46 ▼4.15 | 35.34 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 25.01 ▲1.83 | 609.45 ▼43.71 | 60.45 ▲0.05 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.16 ▲0.01 | 95.96 ▼2.18 | 41.01 ▼2.06 |
Code Search /wp-admin/tools.php?page=ce-search | 826 | 2.00 | 27.17 | 28.04 |
Code Embed /wp-admin/options-general.php?page=ce-options | 940 | 2.00 | 27.53 | 32.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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/simple-embed-code/includes/search-screen.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-embed-code/includes/initialise.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-embed-code/simple-code-embed.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-embed-code/includes/add-embeds.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/simple-embed-code/includes/options-screen.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-embed-code/includes/admin-config.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-embed-code/includes/add-scripts.php:22
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: javascript, html, css, embed, code...
simple-embed-code/simple-code-embed.php 92% from 13 tests
This is the main PHP file of "Code Embed" version 2.3.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-embed-code.php" instead of "simple-code-embed.php")
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
No dangerous file extensions were detected408 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 221 | 262 | 392 |
CSS | 2 | 1 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 18 | |
▷ Named functions | 18 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin