79% object-cache-4-everyone

Code Review | Object Cache 4 everyone

WordPress plugin Object Cache 4 everyone scored79%from 54 tests.

About plugin

  • Plugin page: object-cache-4-ev...
  • Plugin version: 2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 16, 2020
  • Latest release: Nov 6, 2023
  • Number of updates: 30
  • Update frequency: every 42.4 days
  • Top authors: fpuenteonline (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

2,000+ active /33,765 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.53ms] Passed 4 tests

This is a short check of server-side resources used by Object Cache 4 everyone
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1434.67 ▼7.11
Dashboard /wp-admin3.49 ▲0.18949.91 ▲899.44
Posts /wp-admin/edit.php3.53 ▲0.1745.89 ▼8.11
Add New Post /wp-admin/post-new.php6.02 ▲0.1388.80 ▲0.51
Media Library /wp-admin/upload.php3.36 ▲0.1331.61 ▼3.43

Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • There were 90 files (81.22KB) illegally modified outside of "wp-content/plugins/object-cache-4-everyone/" and "wp-content/uploads/"
    • (new file) wp-content/cache/object/06fdfa7d/8c8bafc5/d29cddcf/244eb56c/.object
    • (new file) wp-content/cache/object/03998b16/d018e75b/309d1406/6c6bb16f/.object
    • (new file) wp-content/cache/object/03130ba1/343ce856/27f1203d/d5fb6f8f/.object
    • (new file) wp-content/cache/object/0c164f06/796fffbb/e6d29253/0be67c00/.object
    • (new file) wp-content/cache/object/069a4cff/ddcbc275/4198e59a/04c27189/.object
    • (new file) wp-content/cache/object/11e547ed/e595bfc0/9a9710d6/8d2023c7/.object
    • (new file) wp-content/cache/object/01947fab/f509f614/c8f09fd7/20dbf172/.object
    • (new file) wp-content/cache/object/05651e8e/561faa40/d17388b5/6abe928f/.object
    • (new file) wp-content/cache/object/04e820e0/22018570/8e8ceecd/ff8fcfb5/.object
    • (new file) wp-content/cache/object/0eb1bf47/194a58e4/e7b0ae21/abc85d32/.object
    • ...
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Object Cache 4 everyone
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,752 ▼1014.71 ▲0.561.74 ▲0.1039.59 ▼6.75
Dashboard /wp-admin2,160 ▼185.65 ▼0.01102.13 ▲2.8236.98 ▼5.11
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0138.05 ▼3.4531.87 ▼4.99
Add New Post /wp-admin/post-new.php1,529 ▲323.24 ▲0.11669.00 ▼5.9777.76 ▲13.41
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.04102.65 ▼4.9443.08 ▼1.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/object-cache-4-everyone/oc4-deactivation.php+20
    unlink(wp-content/object-cache.php): No such file or directory
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
4 plugin tags: object cache, wpo, memcached, cache

object-cache-4-everyone/object-cache-4-everyone.php 92% from 13 tests

The main file in "Object Cache 4 everyone" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 182 characters long)

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
Good job! No executable or dangerous file extensions detected1,845 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP64261,4111,525
Markdown1800320

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity69.33
▷ Minimum class complexity19.00
▷ Maximum class complexity133.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods6995.83%
▷ Protected methods00.00%
▷ Private methods34.17%
Functions57
▷ Named functions57100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin