84% react-wp-admin

Code Review | React WP Admin

WordPress plugin React WP Admin scored84%from 54 tests.

About plugin

  • Plugin page: react-wp-admin
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2023
  • Latest release: Mar 25, 2023
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: dym5official (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /169 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.00MB] [CPU: ▼10.85ms] Passed 4 tests

Server-side resources used by React WP Admin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.47 ▼9.69
Dashboard /wp-admin3.31 ▼0.0350.68 ▼13.56
Posts /wp-admin/edit.php3.36 ▲0.0151.03 ▼0.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.49 ▼19.73
Media Library /wp-admin/upload.php3.24 ▲0.0138.95 ▲3.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for React WP Admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.60 ▼0.684.74 ▲2.8343.98 ▲1.71
Dashboard /wp-admin2,237 ▲315.86 ▲0.97103.06 ▼3.8540.06 ▼3.36
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.0235.79 ▼0.0533.67 ▼3.07
Add New Post /wp-admin/post-new.php1,562 ▲3623.29 ▲5.86639.81 ▼57.4862.87 ▼5.00
Media Library /wp-admin/upload.php1,410 ▲104.23 ▲0.03100.33 ▼20.4643.92 ▼3.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/react-wp-admin/react-wp-admin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

react-wp-admin/react-wp-admin.php Passed 13 tests

The entry point to "React WP Admin" version 1.0.0 is a PHP file that has certain tags in its header comment area
64 characters long description:
Basic WordPress plugin with React.js set up for admin interface.

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 plugin258 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP332985
JavaScript3124254
JSX29053
CSS26031
JSON10022
Markdown110013

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.27
Average class complexity2.67
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.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