Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.01ms] Passed 4 tests
Server-side resources used by WP REST API Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.02 ▼2.23 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.30 ▼2.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.27 ▲4.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.79 ▼8.21 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.67 ▲6.76 |
WP REST API Cache /wp-admin/options-general.php?page=rest-cache | 3.23 | 34.36 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP REST API Cache
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.34 ▼0.02 | 1.60 ▼0.20 | 41.63 ▼2.81 |
Dashboard /wp-admin | 2,208 ▲31 | 5.62 ▼0.06 | 87.43 ▼14.03 | 39.46 ▼2.09 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.95 ▲0.01 | 39.12 ▲3.57 | 34.41 ▼4.36 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.39 ▲0.08 | 683.34 ▲9.83 | 50.74 ▼4.42 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.24 ▲0.03 | 108.82 ▲6.90 | 47.14 ▲4.17 |
WP REST API Cache /wp-admin/options-general.php?page=rest-cache | 862 | 2.00 | 24.29 | 27.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: wp, wordpress, rest, wp-api, cache...
wp-rest-api-cache/class-wp-rest-cache.php 92% from 13 tests
Analyzing the main PHP file in "WP REST API Cache" version 1.2.0
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-rest-api-cache.php" instead of "class-wp-rest-cache.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected238 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 46 | 9 | 176 |
Markdown | 1 | 15 | 0 | 62 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.46 |
▷ 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 | 13 | |
▷ Static methods | 13 | 100.00% |
▷ Public methods | 8 | 61.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 38.46% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin