10% memcached-cloud

Code Review | Memcached Cloud

WordPress plugin Memcached Cloud scored10%from 54 tests.

About plugin

  • Plugin page: memcached-cloud
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 2, 2014
  • Latest release: Jul 7, 2014
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: Redis Labs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,998 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Compile error in wp-content/plugins/memcached-cloud/object-cache.php+26
    Cannot redeclare wp_cache_add() (previously declared in wp-includes/cache.php:41)

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.64ms] Passed 4 tests

This is a short check of server-side resources used by Memcached Cloud
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.13 ▲1.27
Dashboard /wp-admin3.31 ▲0.0044.53 ▼4.49
Posts /wp-admin/edit.php3.36 ▲0.0046.84 ▲2.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.58 ▼14.22
Media Library /wp-admin/upload.php3.23 ▲0.0031.79 ▼5.11

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Memcached Cloud
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.351.81 ▲0.3041.77 ▲1.34
Dashboard /wp-admin2,206 ▲185.90 ▲0.02110.48 ▼6.4941.18 ▼5.44
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0340.54 ▲3.2536.28 ▲1.23
Add New Post /wp-admin/post-new.php1,539 ▲2523.28 ▲5.57608.78 ▼89.5449.00 ▼8.25
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0395.95 ▼10.5541.70 ▼7.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: binary protocol, memcached, sasl, object cache, memcached cloud...

memcached-cloud/object-cache.php 85% from 13 tests

"Memcached Cloud" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("memcached-cloud.php" instead of "object-cache.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected636 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12091,241636

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity113.00
▷ Minimum class complexity113.00
▷ Maximum class complexity113.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected