77% wp-memory

Code Review | Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions

WordPress plugin Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions scored77%from 54 tests.

About plugin

  • Plugin page: wp-memory
  • Plugin version: 3.17
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Jun 16, 2019
  • Latest release: Dec 1, 2023
  • Number of updates: 450
  • Update frequency: every 3.6 days
  • Top authors: sminozzi (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

6,000+ active /205,519 total downloads

Benchmarks

Plugin footprint 83% from 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.42MB] [CPU: ▼1.92ms] Passed 4 tests

A check of server-side resources used by Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2435.44 ▼3.45
Dashboard /wp-admin3.79 ▲0.4553.87 ▼4.71
Posts /wp-admin/edit.php3.91 ▲0.5556.84 ▲10.00
Add New Post /wp-admin/post-new.php6.39 ▲0.5090.59 ▼6.83
Media Library /wp-admin/upload.php3.71 ▲0.4840.18 ▲7.33
WP Memory /wp-admin/tools.php?page=wp_memory_admin_page3.76411.12

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 69 new files
Database: no new tables, 12 new options
New WordPress options
wpmemory_last_notification_date
bill_go_pro_hide
widget_theysaidso_widget
wpmemory_was_activated
widget_recent-comments
widget_recent-posts
wpmemory_activated_notice
wp_memory_last_feedback
wpmemory_activated_pointer
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲8913.67 ▼1.041.80 ▲0.1537.31 ▼5.16
Dashboard /wp-admin2,214 ▲345.46 ▼0.1897.93 ▲6.2143.51 ▲0.79
Posts /wp-admin/edit.php2,116 ▲162.49 ▲0.5344.81 ▲3.9034.74 ▼1.77
Add New Post /wp-admin/post-new.php1,546 ▲2023.31 ▲0.23627.61 ▼42.3451.13 ▲0.89
Media Library /wp-admin/upload.php1,422 ▲224.62 ▲0.4297.29 ▼0.8340.80 ▼3.16
WP Memory /wp-admin/tools.php?page=wp_memory_admin_page1,1462.4242.7737.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 12 options in the database
    • theysaidso_admin_options
    • bill_go_pro_hide
    • widget_recent-posts
    • wp_memory_last_feedback
    • wpmemory_activated_pointer
    • db_upgraded
    • widget_theysaidso_widget
    • wpmemory_last_notification_date
    • can_compress_scripts
    • widget_recent-comments
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following
  • 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-memory/dashboard/hardware.php
    • > /wp-content/plugins/wp-memory/css/dashboard_container.php
    • > /wp-content/plugins/wp-memory/dashboard/tools.php
    • > /wp-content/plugins/wp-memory/dashboard/settings.php
    • > /wp-content/plugins/wp-memory/dashboard/premium.php
    • > /wp-content/plugins/wp-memory/public/restore-config.php
    • > /wp-content/plugins/wp-memory/dashboard/dashboard.php
    • > /wp-content/plugins/wp-memory/functions/functions.php
    • > /wp-content/plugins/wp-memory/dashboard/dashboard_container.php
    • > /wp-content/plugins/wp-memory/wpmemory.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bill_banners\\get_transient() in wp-content/plugins/wp-memory/dashboard/mybanners.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpmemoryPlugin_activate\\is_multisite() in wp-content/plugins/wp-memory/includes/feedback/activated-manager.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-memory/dashboard/circle_memory.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Memory Usage (Memory Limit, PHP Memory, hardware memory)), #2 (Page Health Info), #3 (Site-Health: Memory), #4 (Server Errors)
You can take inspiration from this readme.txt

wp-memory/wpmemory.php 85% from 13 tests

The main file in "Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions" v. 3.17 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-memory.php" instead of "wpmemory.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
Good job! No executable or dangerous file extensions detected6,561 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP225744772,803
PO File55525921,946
JavaScript112623081,237
CSS611078575

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods964.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants29100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.91MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/banner.png22.04KB8.42KB▼ 61.79%
screenshot-1.png194.12KB64.79KB▼ 66.63%
screenshot-3.png155.72KB49.60KB▼ 68.15%
screenshot-4.png202.09KB63.39KB▼ 68.63%
images/logo.png8.49KB4.52KB▼ 46.79%