94% memcached-redux

Code Review | Memcached Redux

WordPress plugin Memcached Redux scored 94% from 54 tests.

About plugin

Code review

54 tests

User reviews

9 reviews

Install metrics

600+ active / 30,748 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼141.79ms] Passed 4 tests

This is a short check of server-side resources used by Memcached Redux
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1844.90 ▲21.28
Dashboard /wp-admin3.12 ▲0.0645.87 ▼7.76
Posts /wp-admin/edit.php3.23 ▲0.1245.55 ▲2.20
Add New Post /wp-admin/post-new.php5.48 ▲0.0597.13 ▼552.97
Media Library /wp-admin/upload.php3.06 ▲0.0534.08 ▼8.62

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Memcached Redux
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10715.90 ▲0.358.83 ▲0.2447.41 ▼3.98
Dashboard /wp-admin2,967 ▲335.95 ▼0.01142.84 ▼7.68126.95 ▲2.32
Posts /wp-admin/edit.php2,736 ▼02.70 ▼0.0166.85 ▲1.7485.89 ▼9.79
Add New Post /wp-admin/post-new.php1,591 ▼9218.86 ▲0.11381.34 ▼4.62114.62 ▲2.98
Media Library /wp-admin/upload.php1,810 ▲35.01 ▲0.01155.44 ▼7.77124.60 ▼6.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/memcached-redux/object-cache.php:487

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)
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
6 plugin tags: cache, object cache, manage cache, memcached, wp object cache...

memcached-redux/object-cache.php 92% from 13 tests

The entry point to "Memcached Redux" version 0.1.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("memcached-redux.php" instead of "object-cache.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected352 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111028352

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity68.00
▷ Minimum class complexity68.00
▷ Maximum class complexity68.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin