Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.54ms] Passed 4 tests
An overview of server-side resources used by Link media from TinyMCE
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.30 ▼2.70 |
Dashboard /wp-admin | 3.32 ▼0.02 | 45.47 ▼15.75 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.86 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.48 ▼0.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.21 ▲1.92 |
Link media /wp-admin/options-general.php?page=deefuse_link_media_in_wsiwyg_options_page | 3.21 | 29.93 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
deefuseLinkMediaInWysiwyg_type |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Link media from TinyMCE: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.19 ▼1.11 | 1.70 ▼0.05 | 41.80 ▼1.83 |
Dashboard /wp-admin | 2,207 ▲19 | 5.82 ▼0.03 | 104.39 ▼12.65 | 38.73 ▼4.00 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.03 | 38.68 ▲2.93 | 34.49 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.76 ▲0.26 | 682.17 ▲0.52 | 61.76 ▲3.44 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.30 ▲0.10 | 93.04 ▼6.22 | 42.97 ▼2.42 |
Link media /wp-admin/options-general.php?page=deefuse_link_media_in_wsiwyg_options_page | 788 | 2.17 | 29.83 | 28.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/link-media-from-tinymce/deefuse-link-media-in-wysiwyg.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/link-media-from-tinymce/uninstall.php:3
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Requires at least: The plugin version is formatted incorrectly
- Donate link: Invalid URI found ("")
link-media-from-tinymce/deefuse-link-media-in-wysiwyg.php 92% from 13 tests
The entry point to "Link media from TinyMCE" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("link-media-from-tinymce.php" instead of "deefuse-link-media-in-wysiwyg.php")
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
There were no executable files found in this plugin153 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 32 | 22 | 123 |
PO File | 1 | 37 | 83 | 30 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.57 |
▷ 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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 21.43% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin