Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼301.85ms] Passed 4 tests
This is a short check of server-side resources used by Use Memcached
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.35 | 58.63 ▼22.02 |
Dashboard /wp-admin | 3.70 ▲0.29 | 82.58 ▲48.13 |
Posts /wp-admin/edit.php | 3.93 ▲0.28 | 44.45 ▲4.62 |
Add New Post /wp-admin/post-new.php | 7.23 ▲0.25 | 95.37 ▼1,206.17 |
Media Library /wp-admin/upload.php | 3.65 ▲0.35 | 39.85 ▲16.16 |
Use Memcached /wp-admin/tools.php?page=use_memcached | 3.62 | 24.55 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Illegal file modification detected: 1 file (18.62KB) outside of "wp-content/plugins/use-memcached/" and "wp-content/uploads/"
- (new file) wp-content/object-cache.php
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Use Memcached: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,980 ▲238 | 16.72 ▲1.49 | 9.97 ▲3.04 | 2.94 ▲0.84 |
Dashboard /wp-admin | 2,939 ▲79 | 6.21 ▲0.08 | 119.19 ▼20.10 | 185.52 ▲22.53 |
Posts /wp-admin/edit.php | 2,732 ▲41 | 3.26 ▲0.02 | 104.12 ▲37.45 | 167.96 ▲21.17 |
Add New Post /wp-admin/post-new.php | 1,696 ▲35 | 15.82 ▼0.23 | 420.01 ▼20.05 | 162.06 ▼4.94 |
Media Library /wp-admin/upload.php | 1,742 ▲47 | 5.69 ▲0.19 | 152.62 ▼4.66 | 218.83 ▼10.30 |
Use Memcached /wp-admin/tools.php?page=use_memcached | 1,003 | 2.45 | 54.71 | 162.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/object-cache.php+54
unlink(wp-content/uploads/use-memcached.enabled): No such file or directory
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/use-memcached/plugin.php on line 32
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/use-memcached/plugin.php on line 31
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/use-memcached/templates/object-cache.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function Palasthotel\\WordPress\\UseMemcached\\plugin_dir_url() in wp-content/plugins/use-memcached/plugin.php:63
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/use-memcached/templates/object-cache.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/use-memcached/templates/object-cache.php:148
- > PHP Warning
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: performance, cache
use-memcached/plugin.php 92% from 13 tests
The primary PHP file in "Use Memcached" version 1.0.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("use-memcached.php" instead of "plugin.php")
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
Everything looks great! No dangerous files found in this plugin1,539 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 388 | 477 | 1,406 |
JavaScript | 1 | 13 | 18 | 76 |
PO File | 1 | 13 | 14 | 47 |
JSON | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 16.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 5 | 5.00% |
▷ Public methods | 95 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.00% |
Functions | 23 | |
▷ Named functions | 17 | 73.91% |
▷ Anonymous functions | 6 | 26.09% |
Constants | 19 | |
▷ Global constants | 5 | 26.32% |
▷ Class constants | 14 | 73.68% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin