94% embed-react-application

Code Review | Embed React app

WordPress plugin Embed React app scored 94% from 53 tests.

About plugin

  • Plugin page: embed-react-appli...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 5.8.1
  • First release: Aug 9, 2018
  • Latest release: Feb 26, 2019
  • Number of updates: 7
  • Update frequency: every 28.9 days
  • Top authors: pavex (100%)

Code review

53 tests

User reviews

4 reviews

Install metrics

300+ active / 2,775 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼272.84ms] Passed 4 tests

This is a short check of server-side resources used by Embed React app
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.67 ▲12.06
Dashboard /wp-admin3.06 ▲0.0137.86 ▼10.82
Posts /wp-admin/edit.php3.11 ▲0.0141.37 ▲4.51
Add New Post /wp-admin/post-new.php5.42 ▼0.0185.19 ▼1,077.68
Media Library /wp-admin/upload.php3.00 ▼0.0031.34 ▼7.35

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Embed React app
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲12015.86 ▲0.319.35 ▲1.8150.74 ▲2.93
Dashboard /wp-admin2,956 ▲1065.99 ▲0.10142.85 ▲6.31106.41 ▼0.93
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0163.86 ▼1.3997.74 ▼0.49
Add New Post /wp-admin/post-new.php1,481 ▼10718.38 ▼3.15352.31 ▲66.17106.59 ▲2.26
Media Library /wp-admin/upload.php1,775 ▲35.00 ▲0.00140.15 ▼30.75110.63 ▼7.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/embed-react-application/pavex-embed-reat-app.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: react, embed, reactapp

embed-react-application/pavex-embed-reat-app.php 85% from 13 tests

"Embed React app" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("embed-react-application.php" instead of "pavex-embed-reat-app.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin