84% memcached-is-your-friend

Code Review | MemcacheD Is Your Friend

WordPress plugin MemcacheD Is Your Friend scored84%from 54 tests.

About plugin

  • Plugin page: memcached-is-your...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 30, 2015
  • Latest release: Mar 30, 2015
  • Number of updates: 3
  • Update frequency: every 8.3 days
  • Top authors: jeff@pyebrook.com (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /35,923 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.64 ▲6.94
Dashboard /wp-admin3.31 ▲0.0152.41 ▲1.59
Posts /wp-admin/edit.php3.36 ▲0.0144.34 ▼6.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.71 ▼17.86
Media Library /wp-admin/upload.php3.24 ▲0.0139.97 ▲3.05
Memcached /wp-admin/tools.php?page=wordpress_memcached_support_admin_page3.2031.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.28 ▼0.092.15 ▲0.4042.91 ▲0.16
Dashboard /wp-admin2,199 ▲225.63 ▲0.0184.54 ▼2.5839.01 ▼1.58
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0539.14 ▼0.8832.38 ▼5.91
Add New Post /wp-admin/post-new.php1,530 ▲223.21 ▼0.09697.37 ▲30.8859.04 ▲0.42
Media Library /wp-admin/upload.php1,401 ▲14.15 ▼0.04102.52 ▼14.9145.47 ▼2.08
Memcached /wp-admin/tools.php?page=wordpress_memcached_support_admin_page7752.0026.8429.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP5276177924
Markdown118037

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 code0.43
Average class complexity62.00
▷ Minimum class complexity57.00
▷ Maximum class complexity67.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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