90% memory-usage-monitor

Code Review | Memory Usage Monitor

WordPress plugin Memory Usage Monitor scored 90% from 54 tests.

About plugin

  • Plugin page: memory-usage-monitor
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Sep 14, 2023
  • Latest release: Sep 14, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: SRD75 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 33 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.06ms] Passed 4 tests

A check of server-side resources used by Memory Usage Monitor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.29 ▼1.54
Dashboard /wp-admin3.31 ▲0.0149.95 ▼0.75
Posts /wp-admin/edit.php3.36 ▲0.0146.11 ▲0.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.84 ▼6.46
Media Library /wp-admin/upload.php3.23 ▲0.0146.77 ▲11.96

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

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

Browser metrics Passed 4 tests

Memory Usage Monitor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.31 ▼1.094.52 ▲2.6846.75 ▼8.27
Dashboard /wp-admin2,206 ▲215.85 ▲0.96106.73 ▼5.1239.98 ▼2.19
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0740.94 ▼1.3035.20 ▼0.43
Add New Post /wp-admin/post-new.php1,533 ▼323.25 ▲0.05662.27 ▲55.3451.61 ▼8.14
Media Library /wp-admin/upload.php1,385 ▼64.20 ▲0.01111.98 ▲7.3748.78 ▼2.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: performance, memory

memory-usage-monitor/webbyau_memory_usage.php 92% from 13 tests

The main PHP script in "Memory Usage Monitor" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("memory-usage-monitor.php" instead of "webbyau_memory_usage.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191994

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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