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.05MB] [CPU: ▼9.07ms] Passed 4 tests
A check of server-side resources used by Restrict Content Pro - GetResponse
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 47.85 ▲3.50 |
Dashboard /wp-admin | 3.36 ▲0.05 | 53.10 ▼3.48 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.42 ▼7.94 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.59 ▼26.29 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.78 ▲1.45 |
GetResponse /wp-admin/admin.php?page=rcp-getresponse | 3.25 | 37.37 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Restrict Content Pro - GetResponse: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.46 ▲0.11 | 1.86 ▼0.32 | 43.03 ▼0.37 |
Dashboard /wp-admin | 2,195 ▲24 | 5.51 ▼0.08 | 97.17 ▲8.69 | 43.21 ▼2.45 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▲0.02 | 35.48 ▼2.91 | 33.95 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.04 ▼0.31 | 686.21 ▲32.85 | 52.58 ▼2.99 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.20 ▼0.03 | 102.51 ▼4.74 | 46.45 ▼0.29 |
GetResponse /wp-admin/admin.php?page=rcp-getresponse | 849 | 2.03 | 26.38 | 34.42 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
restrict-content-pro-getresponse/rcp-getresponse.php 85% from 13 tests
Analyzing the main PHP file in "Restrict Content Pro - GetResponse" version 1.0.0
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("restrict-content-pro-getresponse.php" instead of "rcp-getresponse.php")
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
Good job! No executable or dangerous file extensions detected348 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 92 | 226 | 348 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 14 | 73.68% |
▷ Protected methods | 3 | 15.79% |
▷ Private methods | 2 | 10.53% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin