84% whoframed

Code Review | WhoFramed

WordPress plugin WhoFramed scored84%from 54 tests.

About plugin

  • Plugin page: whoframed
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Aug 7, 2020
  • Latest release: Mar 29, 2023
  • Number of updates: 5
  • Update frequency: every 192.8 days
  • Top authors: Paul-M-UK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /447 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by WhoFramed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.75 ▼3.78
Dashboard /wp-admin3.31 ▼0.0446.04 ▼14.63
Posts /wp-admin/edit.php3.36 ▲0.0043.57 ▲0.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.21 ▼10.67
Media Library /wp-admin/upload.php3.23 ▲0.0034.93 ▲0.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WhoFramed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲13513.61 ▼0.755.97 ▲3.5644.98 ▲2.37
Dashboard /wp-admin2,206 ▲185.86 ▼0.04110.31 ▼1.8843.20 ▼2.46
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0537.97 ▲2.6034.13 ▼1.30
Add New Post /wp-admin/post-new.php1,533 ▲1923.25 ▲5.61642.09 ▼22.8056.21 ▲4.55
Media Library /wp-admin/upload.php1,385 ▲34.20 ▼0.1193.19 ▼10.7442.23 ▼2.44

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

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

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/whoframed/whoframed.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
9 plugin tags: embeds, responsive, object, vimeo, iframe...

whoframed/whoframed.php Passed 13 tests

The primary PHP file in "WhoFramed" version 1.3 is used by WordPress to initiate all plugin functionality
61 characters long description:
This plugin will magically make any iframe embeds responsive.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin23 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript20017
PHP15206

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin