Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5401
class-oembed.php is deprecated since version 5.3.0! Use wp-includes/class-wp-oembed.php instead.
Server metrics [RAM: ▼1.82MB] [CPU: ▼187.04ms] Passed 4 tests
Server-side resources used by OEmbed in Library
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼0.91 | 5.03 ▼14.65 |
Dashboard /wp-admin | 1.82 ▼1.23 | 4.99 ▼33.17 |
Posts /wp-admin/edit.php | 1.83 ▼1.28 | 7.15 ▼42.97 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.61 | 5.74 ▼645.29 |
Media Library /wp-admin/upload.php | 1.83 ▼1.18 | 5.21 ▼26.72 |
oEmbed /wp-admin/upload.php?page=oembedinlibrary | 1.83 | 5.46 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for OEmbed in Library
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.84 ▲0.44 | 11.09 ▲2.62 | 47.13 ▼2.58 |
Dashboard /wp-admin | 2,975 ▲44 | 6.10 ▲0.10 | 137.05 ▼10.98 | 108.04 ▲1.57 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.69 ▼0.01 | 64.86 ▲2.69 | 90.75 ▲9.90 |
Add New Post /wp-admin/post-new.php | 1,503 ▼180 | 18.45 ▼0.13 | 349.73 ▼20.49 | 108.90 ▼3.01 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.01 ▲0.01 | 152.54 ▲1.21 | 117.96 ▲1.27 |
oEmbed /wp-admin/upload.php?page=oembedinlibrary | 1,056 | 2.34 | 56.80 | 69.16 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5401
class-oembed.php is deprecated since version 5.3.0! Use wp-includes/class-wp-oembed.php instead.
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/upload.php?page=oembedinlibrary
- > User deprecated in wp-includes/functions.php+5401
class-oembed.php is deprecated since version 5.3.0! Use wp-includes/class-wp-oembed.php instead.
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(ABSPATHWPINC/class-oembed.php): failed to open stream: No such file or directory in wp-content/plugins/oembed-in-library/index.php on line 31
- > 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-in-library/index.php on line 31
- > 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-in-library/index.php on line 31
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-oembed.php' (include_path='.:/usr/share/php') in wp-content/plugins/oembed-in-library/index.php on line 31
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
oembed-in-library/index.php 92% from 13 tests
The primary PHP file in "OEmbed in Library" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("oembed-in-library.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin212 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 74 | 156 |
PO File | 1 | 11 | 13 | 36 |
JavaScript | 1 | 1 | 3 | 18 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.93 |
▷ 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 | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 18.75% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mime_icons/oembed_SoundCloud.png | 2.26KB | 2.20KB | ▼ 2.72% |
mime_icons/oembed_Spotify.png | 3.37KB | 2.56KB | ▼ 23.99% |
mime_icons/oembed_Flickr.png | 2.98KB | 2.44KB | ▼ 18.08% |
mime_icons/oembed_Vimeo.png | 3.73KB | 2.62KB | ▼ 29.93% |
mime_icons/oembed_Twitter.png | 2.32KB | 2.12KB | ▼ 8.75% |