89% load-posts-in-react

Code Review | Load Posts in React

WordPress plugin Load Posts in React scored89%from 54 tests.

About plugin

  • Plugin page: load-posts-in-react
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 2, 2023
  • Latest release: Jul 27, 2023
  • Number of updates: 3
  • Update frequency: every 28.7 days
  • Top authors: volmohammed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /80 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Load Posts in React
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.70 ▼2.30
Dashboard /wp-admin3.32 ▲0.0153.52 ▼1.42
Posts /wp-admin/edit.php3.37 ▲0.0147.94 ▼1.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.10 ▼18.79
Media Library /wp-admin/upload.php3.24 ▲0.0137.53 ▼2.45

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Load Posts in React
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.111.68 ▲0.1243.57 ▲1.83
Dashboard /wp-admin2,203 ▲185.88 ▼0.13104.77 ▼10.6443.69 ▼2.14
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0539.08 ▼0.6033.28 ▼1.36
Add New Post /wp-admin/post-new.php1,514 ▼517.58 ▼5.56664.42 ▼14.9550.13 ▼7.32
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.04106.95 ▲3.6448.10 ▲3.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Use Shortcode [get-posts-react]), #2 (Place `` in your templates)
Please take inspiration from this readme.txt

load-posts-in-react/load-posts-in-react.php 92% from 13 tests

The main PHP script in "Load Posts in React" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin91 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP252587
JavaScript3033
CSS1011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin