84% ep4-more-embeds

Code Review | EP4 More Embeds

WordPress plugin EP4 More Embeds scored84%from 54 tests.

About plugin

  • Plugin page: ep4-more-embeds
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 19, 2017
  • Latest release: Mar 19, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: davelavoie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,142 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.47MB] [CPU: ▼3.69ms] Passed 4 tests

A check of server-side resources used by EP4 More Embeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5040.93 ▲0.26
Dashboard /wp-admin3.80 ▲0.5049.74 ▲0.28
Posts /wp-admin/edit.php3.86 ▲0.5047.83 ▼1.83
Add New Post /wp-admin/post-new.php6.32 ▲0.4486.84 ▼13.45
Media Library /wp-admin/upload.php3.67 ▲0.4440.48 ▲2.96
Embeds /wp-admin/options-general.php?page=ep4-more-embeds3.6641.57

Server storage [IO: ▲0.15MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
ep4-more-embeds-providers
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
ep4-more-embeds-bandcamp
widget_recent-posts
ep4-more-embeds-box

Browser metrics Passed 4 tests

This is an overview of browser requirements for EP4 More Embeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.31 ▲0.071.69 ▼0.1939.33 ▼1.76
Dashboard /wp-admin2,202 ▲255.64 ▲0.0684.67 ▼6.1137.09 ▼4.66
Posts /wp-admin/edit.php2,104 ▲252.02 ▼0.0035.35 ▼1.4332.32 ▼5.93
Add New Post /wp-admin/post-new.php1,529 ▼822.75 ▲4.34608.91 ▼15.9547.12 ▼61.77
Media Library /wp-admin/upload.php1,404 ▲14.23 ▼0.06111.98 ▲13.5844.11 ▲2.72
Embeds /wp-admin/options-general.php?page=ep4-more-embeds1,0873.3855.2427.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ep4-more-embeds/ep4-more-embeds.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Invalid url: ""
The official readme.txt might help

ep4-more-embeds/ep4-more-embeds.php Passed 13 tests

"EP4 More Embeds" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
113 characters long description:
Support for more embedded content on your website. Current supported embeds are Bandcamp, Box.com, VEVO & Twitch.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,855 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP174632,1141,728
JavaScript222969
CSS36358

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity26.20
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods111
▷ Static methods1412.61%
▷ Public methods8576.58%
▷ Protected methods98.11%
▷ Private methods1715.32%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin