Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.12ms] Passed 4 tests
Server-side resources used by WP LCache
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.41 ▼1.77 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.07 ▼5.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 66.13 ▲12.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 108.58 ▲7.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.75 ▲0.65 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 39 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_lcache_tags |
wp_lcache_events |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
WP LCache: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.29 ▼1.15 | 1.89 ▲0.10 | 43.34 ▼2.46 |
Dashboard /wp-admin | 2,213 ▲25 | 5.89 ▼0.00 | 98.76 ▼8.01 | 40.23 ▼4.86 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.00 ▼0.01 | 42.31 ▼1.03 | 37.78 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 23.21 ▲0.15 | 678.68 ▲74.09 | 52.89 ▲2.41 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.31 ▲0.09 | 96.91 ▼3.76 | 48.97 ▲6.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_lcache_events
- wp_lcache_tags
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 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)
Good news, no errors were detected
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
Please take a closer look at the following
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LCache\\StaticL1' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/NullL1.php:5
- > PHP Fatal error
Uncaught Error: Class 'LCache\\L1' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/APCuL1.php:5
- > PHP Fatal error
Uncaught Error: Class 'LCache\\L2' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/DatabaseL2.php:5
- > PHP Fatal error
Uncaught Error: Class 'LCache\\LX' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/L1.php:5
- > PHP Fatal error
Uncaught Error: Class 'LCache\\L1' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/StaticL1.php:5
- > PHP Fatal error
Uncaught Error: Interface 'LCache\\StateL1Interface' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/StateL1Static.php:15
- > PHP Fatal error
Uncaught Error: Interface 'LCache\\StateL1Interface' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/StateL1APCu.php:15
- > PHP Fatal error
Uncaught Error: Class 'LCache\\L1' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/SQLiteL1.php:5
- > PHP Fatal error
Uncaught Error: Class 'LCache\\L2' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/StaticL2.php:5
- > PHP Fatal error
Uncaught Error: Class 'LCache\\LX' not found in wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/L2.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: cache, apcu, lcache, apc, object-cache...
wp-lcache/wp-lcache.php Passed 13 tests
"WP LCache" version 0.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
102 characters long description:
Supercharge your WP Object Cache with LCache, a persistent, performant, and multi-layer cache library.
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
Success! There were no dangerous files found in this plugin2,519 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 494 | 1,132 | 2,342 |
JSON | 3 | 0 | 0 | 115 |
YAML | 1 | 7 | 3 | 28 |
XML | 1 | 0 | 0 | 18 |
Markdown | 1 | 8 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 3 | 14.29% |
▷ Concrete classes | 18 | 85.71% |
▷ Final classes | 3 | 16.67% |
Methods | 209 | |
▷ Static methods | 10 | 4.78% |
▷ Public methods | 173 | 82.78% |
▷ Protected methods | 32 | 15.31% |
▷ Private methods | 4 | 1.91% |
Functions | 20 | |
▷ Named functions | 18 | 90.00% |
▷ Anonymous functions | 2 | 10.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin