Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.06ms] Passed 4 tests
This is a short check of server-side resources used by Easy Post Embed Code
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 33.80 ▼7.79 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.34 ▲3.85 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 46.97 ▲5.67 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.49 ▼7.35 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.61 ▲3.07 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
easy_post_embed_code_version |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Post Embed Code
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲161 | 13.89 ▼0.77 | 8.77 ▲6.97 | 40.02 ▼2.75 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▲0.12 | 86.61 ▼13.77 | 36.94 ▼7.79 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 2.01 ▲0.02 | 41.08 ▲1.13 | 35.76 ▼0.94 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,832 | 27.72 ▲9.68 | 911.27 ▲309.18 | 38.06 ▼29.63 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.23 ▲0.02 | 95.16 ▼3.55 | 42.31 ▼0.78 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- easy_post_embed_code_version
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: copy, code, gutenberg, block, post...
easy-post-embed-code/easy-post-embed-code.php Passed 13 tests
This is the main PHP file of "Easy Post Embed Code" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
Adds each post's embed code to the post edit screen for easy copying.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin235 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 141 | 164 |
JavaScript | 2 | 9 | 0 | 55 |
CSS | 2 | 0 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG images were not found in this plugin