90% responsive-embeds

Code Review | Responsive Embeds

WordPress plugin Responsive Embeds scored90%from 54 tests.

About plugin

  • Plugin page: responsive-embeds
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7
  • WordPress version: 6.3.1
  • First release: Jan 4, 2017
  • Latest release: Jan 4, 2017
  • Number of updates: 6
  • Update frequency: every 2.7 days
  • Top authors: PhilMeadows (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,361 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.41ms] Passed 4 tests

An overview of server-side resources used by Responsive Embeds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0143.64 ▼2.61
Dashboard /wp-admin3.36 ▲0.0151.38 ▼4.64
Posts /wp-admin/edit.php3.41 ▲0.0152.85 ▲0.46
Add New Post /wp-admin/post-new.php5.94 ▲0.0197.10 ▼6.86
Media Library /wp-admin/upload.php3.28 ▲0.0140.38 ▲2.15

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Embeds
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲15113.82 ▼0.428.86 ▲7.1244.46 ▼3.41
Dashboard /wp-admin2,195 ▲145.58 ▼0.1392.12 ▼8.2038.91 ▼4.34
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0538.28 ▼8.2735.21 ▲1.00
Add New Post /wp-admin/post-new.php1,526 ▼223.11 ▼0.16611.72 ▼50.6849.54 ▼8.36
Media Library /wp-admin/upload.php1,400 ▼34.11 ▼0.10123.04 ▲11.8250.41 ▼0.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: responsive youtube, responsive, responsive video, video, responsive google maps...

responsive-embeds/pkm-responsive-embeds.php 92% from 13 tests

Analyzing the main PHP file in "Responsive Embeds" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-embeds.php" instead of "pkm-responsive-embeds.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 plugin77 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2213951
CSS11121
JavaScript1013
Markdown1102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected