Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼297.03ms] Passed 4 tests
A check of server-side resources used by eko Wordpress Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 53.38 ▲3.52 |
Dashboard /wp-admin | 3.45 ▲0.04 | 31.75 ▼0.83 |
Posts /wp-admin/edit.php | 3.67 ▲0.04 | 35.10 ▲0.47 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 93.29 ▼1,181.28 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 24.84 ▼6.49 |
Add New eko Video /wp-admin/post-new.php?post_type=eko-video | 3.60 | 46.99 |
All eko Videos /wp-admin/edit.php?post_type=eko-video | 3.38 | 27.55 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for eko Wordpress Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,821 ▲99 | 15.74 ▼0.26 | 5.89 ▲0.16 | 2.19 ▲0.20 |
Dashboard /wp-admin | 2,945 ▲87 | 6.02 ▼0.25 | 113.04 ▼19.02 | 174.23 ▲12.52 |
Posts /wp-admin/edit.php | 2,745 ▲51 | 3.13 ▼0.12 | 63.84 ▲1.21 | 141.17 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,809 ▲49 | 21.04 ▼1.45 | 405.65 ▼14.42 | 191.69 ▲33.92 |
Media Library /wp-admin/upload.php | 1,749 ▲51 | 5.54 ▲0.06 | 129.99 ▼5.41 | 212.43 ▲21.82 |
Add New eko Video /wp-admin/post-new.php?post_type=eko-video | 2,082 | 4.43 | 87.75 | 359.16 |
All eko Videos /wp-admin/edit.php?post_type=eko-video | 1,427 | 3.15 | 59.70 | 121.00 |
Uninstaller [IO: ▲0.25MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the followingThe uninstall procedure has failed, leaving 1 option in the database
- This plugin did not uninstall without warnings or errors
- > Error in wp-content/plugins/eko-video/uninstall.php+49
Uncaught Error: Function name must be a string in wp-content/plugins/eko-video/uninstall.php:49
Stack trace:
#0 wp-admin/includes/plugin.php(1239): include_once()
#1 wp-admin/includes/plugin.php(956): uninstall_plugin() - This plugin has failed uninstalling correctly, leaving 29 files (0.25MB) in the plugin directory
- (new file) eko-video.php
- (new file) includes/admin/class-video.php
- (new file) .wordpress-org/icon-256x256.png
- (new file) .wordpress-org/icon.svg
- (new file) includes/admin/class-admin.php
- (new file) .wordpress-org/icon-128x128.png
- (new file) dist/js/videoPostType.js
- (new file) dist/js/shortcodeIframe.js
- (new file) .wordpress-org/banner-772x250.jpg
- (new file) .wordpress-org/banner-1544x500.jpg
- ...
- recovery_mode_email_last_sent
Smoke tests 25% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/eko-video/eko-video.php
- > /wp-content/plugins/eko-video/includes/admin/class-video.php
- > /wp-content/plugins/eko-video/includes/frontend/class-frontend.php
- > /wp-content/plugins/eko-video/includes/admin/class-admin.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant EKO_PLUGIN_URL - assumed 'EKO_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/eko-video/includes/admin/templates/eko-admin-menu.php on line 62
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/eko-video/theme/index.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/eko-video/includes/admin/templates/eko-admin-menu.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/eko-video/theme/header.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/eko-video/theme/footer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/eko-video/theme/single-eko-video.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eko-video/theme/sidebar.php:2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=eko-video
- > Network (severe)
wp-content/plugins/eko-video/eko-js-sdk-develop/dist/EkoPlayer.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: embedding, video, episode, embed, videos...
eko-video/eko-video.php Passed 13 tests
The principal PHP file in "eko Wordpress Plugin" v. 1.0.8 is loaded by WordPress automatically on each request
62 characters long description:
A plugin to assist on embedding eko videos in WordPress sites.
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
Success! There were no dangerous files found in this plugin1,283 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 102 | 311 | 826 |
CSS | 2 | 44 | 11 | 235 |
JavaScript | 4 | 20 | 22 | 209 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/eko_wp_admin_icon_mint.png | 0.41KB | 0.33KB | ▼ 19.29% |
includes/images/eko_wp_admin_icon_mint@2x.png | 0.74KB | 0.48KB | ▼ 35.06% |
includes/images/eko_large_logo_mint.png | 48.52KB | 22.56KB | ▼ 53.51% |
.wordpress-org/icon-128x128.png | 2.39KB | 1.10KB | ▼ 53.94% |
.wordpress-org/icon-256x256.png | 4.44KB | 2.03KB | ▼ 54.26% |