Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.13ms] Passed 4 tests
A check of server-side resources used by ReactPress - Create React App for Wordpress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.53 ▲1.00 |
Dashboard /wp-admin | 3.34 ▲0.03 | 57.77 ▲5.80 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.86 ▲1.19 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.39 ▼4.40 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.26 ▲1.69 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/reactpress/" and "wp-content/uploads/"
- (new file) wp-content/reactpress/apps/.empty
Filesystem: 66 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
repr_apps |
can_compress_scripts |
repr_version |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by ReactPress - Create React App for Wordpress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲233 | 13.57 ▼0.81 | 5.26 ▲3.34 | 42.40 ▼1.62 |
Dashboard /wp-admin | 2,295 ▲107 | 5.87 ▼0.01 | 103.20 ▲1.97 | 41.85 ▼1.51 |
Posts /wp-admin/edit.php | 2,174 ▲85 | 2.04 ▲0.02 | 34.79 ▼3.82 | 34.22 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 22.98 ▲5.48 | 652.35 ▼48.84 | 62.52 ▼1.07 |
Media Library /wp-admin/upload.php | 1,473 ▲82 | 4.23 ▲0.07 | 96.57 ▼2.64 | 42.69 ▼4.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- repr_apps
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- repr_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/reactpress/public/partials/reactpress-public-display.php
- > /wp-content/plugins/reactpress/admin/partials/reactpress-admin-display.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/reactpress/tests/UtilsTest.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reactpress/templates/react-page-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_attachment_image_src() in wp-content/plugins/reactpress/templates/empty-react-page-template.php:145
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/reactpress/tests/ActivatorTest.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: developer, js, javascript, embed, react
reactpress/reactpress.php Passed 13 tests
The main PHP script in "ReactPress - Create React App for Wordpress" version 3.2.0 is automatically included on every request by WordPress
78 characters long description:
Easily create, build and deploy React apps into your existing WordPress sites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,149 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 412 | 1,209 | 1,991 |
JSON | 4 | 0 | 0 | 83 |
SVG | 5 | 2 | 1 | 35 |
Bourne Shell | 1 | 1 | 2 | 19 |
Markdown | 1 | 9 | 0 | 12 |
JavaScript | 5 | 3 | 33 | 6 |
HTML | 1 | 1 | 0 | 2 |
CSS | 2 | 0 | 5 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 2 | 11.76% |
Methods | 113 | |
▷ Static methods | 49 | 43.36% |
▷ Public methods | 104 | 92.04% |
▷ Protected methods | 2 | 1.77% |
▷ Private methods | 7 | 6.19% |
Functions | 20 | |
▷ Named functions | 7 | 35.00% |
▷ Anonymous functions | 13 | 65.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/reactpress-admin/build/logo192.png | 5.22KB | 5.57KB | 0.00% |
admin/js/reactpress-admin/build/logo512.png | 9.44KB | 10.35KB | 0.00% |