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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▼10.03ms] Passed 4 tests
A check of server-side resources used by On-Demand Revalidation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 40.95 ▼11.73 |
Dashboard /wp-admin | 3.68 ▲0.38 | 52.98 ▲2.56 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 50.19 ▼5.84 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 85.33 ▼25.11 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.74 ▲3.31 |
Next.js On-Demand Revalidation /wp-admin/options-general.php?page=on-demand-revalidation | 3.52 | 38.91 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
on_demand_revalidation_default_settings |
can_compress_scripts |
on_demand_revalidation_post_update_settings |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for On-Demand Revalidation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲215 | 14.83 ▲0.45 | 1.66 ▼0.30 | 37.95 ▼8.98 |
Dashboard /wp-admin | 2,364 ▲176 | 6.63 ▲0.81 | 130.40 ▲11.17 | 41.68 ▼8.47 |
Posts /wp-admin/edit.php | 2,276 ▲187 | 3.52 ▲1.48 | 50.19 ▲7.35 | 31.25 ▼9.56 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 23.20 ▼0.01 | 651.47 ▼35.59 | 37.11 ▼24.96 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.30 ▲0.11 | 81.34 ▼21.81 | 40.41 ▼2.39 |
Next.js On-Demand Revalidation /wp-admin/options-general.php?page=on-demand-revalidation | 1,125 | 3.58 | 46.90 | 27.42 |
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
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: revalidation, nextjs, ssg, on-demand
on-demand-revalidation/on-demand-revalidation.php Passed 13 tests
"On-Demand Revalidation" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
Next.js On-Demand Revalidation on the post update, revalidate specific paths on the post update.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,464 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 381 | 786 | 1,459 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 26.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 98 | |
▷ Static methods | 31 | 31.63% |
▷ Public methods | 90 | 91.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.16% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin