Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.32ms] Passed 4 tests
An overview of server-side resources used by REST Interface for WPForms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.76 ▼3.58 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.87 ▼14.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.41 ▲2.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.33 ▼6.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.04 ▼0.53 |
REST Interface /wp-admin/admin.php?page=rest-interface-for-wpforms | 3.00 | 26.95 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for REST Interface for WPForms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.23 ▼0.40 | 1.89 ▼0.04 | 44.05 ▲0.91 |
Dashboard /wp-admin | 2,192 ▲15 | 5.57 ▼0.05 | 82.31 ▼19.75 | 41.97 ▼2.85 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▼0.01 | 39.56 ▲2.75 | 38.39 ▲1.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 17.77 ▲0.08 | 651.68 ▼17.98 | 56.88 ▼4.97 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.21 ▲0.00 | 104.13 ▼2.02 | 45.29 ▼0.72 |
REST Interface /wp-admin/admin.php?page=rest-interface-for-wpforms | 28 | 0.44 | 0.11 | 4.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wpforms() in wp-content/plugins/rest-interface-for-wpforms/admin/partials/rest-interface-for-wpforms-admin-display.php:33
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=rest-interface-for-wpforms
- > Network (severe)
wp-admin/admin.php?page=rest-interface-for-wpforms - Failed to load resource: the server responded with a status of 403 (Forbidden)
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
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (The admin interface view)
rest-interface-for-wpforms/rest-interface-for-wpforms.php Passed 13 tests
This is the main PHP file of "REST Interface for WPForms" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
113 characters long description:
A GUI to Post WPforms form entry data to an endpoint of your choice on a per-form basis without writing any code.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,403 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 9 | 1,102 |
PHP | 11 | 94 | 511 | 298 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 3 | 12.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 95.94KB | 25.96KB | ▼ 72.95% |