89% embed-react-build

Code Review | Embed React Build

WordPress plugin Embed React Build scored89%from 54 tests.

About plugin

  • Plugin page: embed-react-build
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 6.3.1
  • First release: May 15, 2021
  • Latest release: Sep 12, 2021
  • Number of updates: 7
  • Update frequency: every 17.3 days
  • Top authors: nsei (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /779 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Embed React Build
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.14 ▼7.51
Dashboard /wp-admin3.33 ▼0.0243.37 ▼20.83
Posts /wp-admin/edit.php3.38 ▲0.0244.39 ▼1.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.00 ▼5.66
Media Library /wp-admin/upload.php3.25 ▲0.0233.96 ▲3.39

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Embed React Build: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.15 ▼1.131.70 ▼0.1238.68 ▼4.33
Dashboard /wp-admin2,206 ▲154.90 ▲0.02108.59 ▲1.0238.13 ▼6.41
Posts /wp-admin/edit.php2,086 ▼01.99 ▼0.0639.25 ▲2.4134.59 ▲0.05
Add New Post /wp-admin/post-new.php1,533 ▼423.15 ▼0.15656.43 ▲33.2161.23 ▲9.33
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0399.81 ▲3.5445.69 ▲3.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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
Everything seems fine, however 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 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
Attributes that require attention:
  • Donate link: Invalid URI ("")
  • Contributors: There were no tags found
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

embed-react-build/embed-react-build.php Passed 13 tests

"Embed React Build" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
This plugin allows the ReactJS build to work embedded in wordpress.

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
Success! There were no dangerous files found in this plugin127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12844104
Markdown112023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 images were found in this plugin