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.06MB] [CPU: ▼4.86ms] Passed 4 tests
This is a short check of server-side resources used by R4E Cart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.64 ▼7.50 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.55 ▼6.48 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.93 ▲3.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 94.95 ▼4.35 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 34.34 ▼1.09 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
r4earth_biz_email |
widget_recent-comments |
r4earth_biz_token |
db_upgraded |
r4earth_biz_id |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for R4E Cart
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.30 ▼1.09 | 1.86 ▲0.03 | 41.72 ▼3.49 |
Dashboard /wp-admin | 2,222 ▲45 | 5.89 ▲0.03 | 107.92 ▼2.82 | 41.54 ▼1.96 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▲0.02 | 39.65 ▲4.12 | 35.50 ▲3.43 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 23.40 ▲5.86 | 582.03 ▼85.61 | 49.84 ▼11.18 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.22 ▲0.01 | 97.35 ▼4.94 | 41.10 ▼3.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rewards4earth-connector/public/checkoutpage.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rewards4earth-connector/admin/adminpage.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rewards4earth-connector/r4ecart.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in rewards4earth-connector/assets to your readme.txt
rewards4earth-connector/r4ecart.php 69% from 13 tests
"R4E Cart" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rewards4earth-connector.php" instead of "r4ecart.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 316 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin617 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 125 | 42 | 331 |
PHP | 3 | 135 | 30 | 285 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin