Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.88ms] Passed 4 tests
Analyzing server-side resources used by MemcacheD Is Your Friend
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 47.64 ▲6.94 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.41 ▲1.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.34 ▼6.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.71 ▼17.86 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.97 ▲3.05 |
Memcached /wp-admin/tools.php?page=wordpress_memcached_support_admin_page | 3.20 | 31.36 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- There were 1 file (3.13KB) illegally modified outside of "wp-content/plugins/memcached-is-your-friend/" and "wp-content/uploads/"
- (new file) wp-content/object-cache.php
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
wordpress_memcached_support_version |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for MemcacheD Is Your Friend
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.28 ▼0.09 | 2.15 ▲0.40 | 42.91 ▲0.16 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▲0.01 | 84.54 ▼2.58 | 39.01 ▼1.58 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.05 | 39.14 ▼0.88 | 32.38 ▼5.91 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.21 ▼0.09 | 697.37 ▲30.88 | 59.04 ▲0.42 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.15 ▼0.04 | 102.52 ▼14.91 | 45.47 ▼2.08 |
Memcached /wp-admin/tools.php?page=wordpress_memcached_support_admin_page | 775 | 2.00 | 26.84 | 29.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > No Memcached support, neither the PHP Memcached nor the PHP Memcache class was found, see http
//pecl.php.net/ for configuration help
- > No Memcached support, neither the PHP Memcached nor the PHP Memcache class was found, see http
//pecl.php.net/ for configuration help
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/memcached-is-your-friend/memcached-is-your-friend.php:130
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/memcached-is-your-friend/memcached-class-object-cache.php:500
- > No Memcached support, neither the PHP Memcached nor the PHP Memcache class was found, see http
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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: memcached, cache, memcache
memcached-is-your-friend/memcached-is-your-friend.php Passed 13 tests
This is the main PHP file of "MemcacheD Is Your Friend" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Memcached via PHP Memcache or Memcached Class Support for WordPress
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 detected961 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 276 | 177 | 924 |
Markdown | 1 | 18 | 0 | 37 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected