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.69MB] [CPU: ▼18.70ms] Passed 4 tests
A check of server-side resources used by rng-refresh
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.43 ▼2.98 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.41 ▼12.87 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.85 ▼0.11 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.78 | 33.11 ▼56.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.22 ▼2.22 |
Refresh Settings /wp-admin/options-general.php?page=refresh-settings | 3.25 | 34.22 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
rng_refresh_configure_dismiss |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by rng-refresh
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.21 ▼0.14 | 1.77 ▲0.16 | 43.32 ▼0.56 |
Dashboard /wp-admin | 2,207 ▲33 | 5.61 ▼0.04 | 93.94 ▼7.95 | 42.61 ▼1.48 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 1.97 ▼0.00 | 34.97 ▲1.61 | 33.77 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 18.40 ▼5.15 | 637.68 ▼30.71 | 68.47 ▲9.17 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.18 ▲0.05 | 104.14 ▼3.44 | 47.74 ▲2.15 |
Refresh Settings /wp-admin/options-general.php?page=refresh-settings | 811 | 2.00 | 25.75 | 29.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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:
- Screenshots: No descriptions were found for these screenshots #1, #2 in rng-refresh/assets to your readme.txt
rng-refresh/rng-refresh.php Passed 13 tests
"rng-refresh" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
WordPress Plugin that refreshes the single template of public post types with a synchronism time period.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin356 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 48 | 103 | 250 |
PO File | 1 | 20 | 21 | 64 |
JavaScript | 1 | 1 | 1 | 16 |
Markdown | 1 | 7 | 0 | 14 |
CSS | 1 | 0 | 1 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin