Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5643
File class-oembed.php is deprecated since version 5.3.0! Use wp-includes/class-wp-oembed.php instead.
Server metrics [RAM: ▼1.96MB] [CPU: ▼58.94ms] Passed 4 tests
This is a short check of server-side resources used by oEmbed as media
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.17 ▼39.31 |
Dashboard /wp-admin | 2.06 ▼1.28 | 5.39 ▼58.02 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 6.91 ▼42.11 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.83 | 6.10 ▼96.32 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 5.67 ▼28.50 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for oEmbed as media
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 14.34 ▼0.14 | 1.89 ▼0.11 | 42.12 ▼5.16 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.09 | 80.47 ▼17.65 | 38.36 ▼3.24 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.21 | 39.60 ▲3.64 | 34.01 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.14 ▼5.19 | 601.75 ▼84.08 | 82.40 ▲32.83 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.14 ▼0.03 | 94.33 ▼11.55 | 41.02 ▼4.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > User deprecated in wp-includes/functions.php+5643
File class-oembed.php is deprecated since version 5.3.0! Use wp-includes/class-wp-oembed.php instead.
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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 everything seems fine, this is not 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
Almost there! Just fix the following items
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/oembed-as-media/oembed-as-media.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/oembed-as-media/admin/media-tab.php:4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-oembed.php' (include_path='.:/usr/share/php') in wp-content/plugins/oembed-as-media/oembed-as-media.php on line 14
- > PHP Notice
Undefined variable: nonce in wp-content/plugins/oembed-as-media/admin/media-tab.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oembed-as-media/admin/media-upload.php:13
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/oembed-as-media/oembed-as-media.php on line 14
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/oembed-as-media/admin/media-tab.php on line 3
- > PHP Warning
require_once(ABSPATHWPINC/class-oembed.php): failed to open stream: No such file or directory in wp-content/plugins/oembed-as-media/oembed-as-media.php on line 14
- > PHP Notice
Undefined variable: url in wp-content/plugins/oembed-as-media/admin/media-tab.php on line 1
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: media, youtube, library, oembed
oembed-as-media/oembed-as-media.php 85% from 13 tests
Analyzing the main PHP file in "oEmbed as media" version $version$...
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "$version$...")
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
Good job! No executable or dangerous file extensions detected148 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 12 | 22 | 148 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 6 | |
▷ Named functions | 6 | 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
PNG images were not found in this plugin