84% mindvalley-hispano-any-page-embed

Code Review | MindValley Hispano Any Page Embed

WordPress plugin MindValley Hispano Any Page Embed scored84%from 54 tests.

About plugin

  • Plugin page: mindvalley-hispan...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Mar 11, 2013
  • Latest release: Apr 10, 2013
  • Number of updates: 10
  • Update frequency: every 3.3 days
  • Top authors: davcs86 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /966 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.03ms] Passed 4 tests

This is a short check of server-side resources used by MindValley Hispano Any Page Embed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.89 ▼1.43
Dashboard /wp-admin3.33 ▲0.0250.29 ▲1.46
Posts /wp-admin/edit.php3.38 ▲0.0247.79 ▼7.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.23 ▼12.14
Media Library /wp-admin/upload.php3.25 ▲0.0235.81 ▲3.58

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for MindValley Hispano Any Page Embed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.141.67 ▼0.4244.77 ▼3.08
Dashboard /wp-admin2,206 ▲185.88 ▲0.97106.42 ▼10.4439.14 ▼1.91
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0239.39 ▼0.8335.40 ▼1.46
Add New Post /wp-admin/post-new.php1,542 ▲918.33 ▼4.89593.95 ▼73.8967.17 ▲12.51
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0197.82 ▼4.7948.78 ▲2.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 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/mindvalley-hispano-any-page-embed/MVHispano-any-page-embed.php:101

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: formatting

mindvalley-hispano-any-page-embed/MVHispano-any-page-embed.php 85% from 13 tests

The main PHP script in "MindValley Hispano Any Page Embed" version 1.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 406 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mindvalley-hispano-any-page-embed.php" instead of "MVHispano-any-page-embed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121380

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin