Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲5.07MB] [CPU: ▲22.23ms] 75% from 4 tests
Server-side resources used by Memory Meter
The following require your attention
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.07MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.00 ▲5.49 | 71.89 ▲28.03 |
Dashboard /wp-admin | 9.02 ▲5.63 | 81.65 ▲15.91 |
Posts /wp-admin/edit.php | 9.02 ▲5.62 | 76.98 ▲23.96 |
Add New Post /wp-admin/post-new.php | 9.46 ▲3.54 | 117.00 ▲21.02 |
Media Library /wp-admin/upload.php | 9.02 ▲5.75 | 72.81 ▲37.95 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.02 | 68.30 |
Server storage [IO: ▲3.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 199 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
fs_active_plugins |
widget_recent-posts |
fs_accounts |
wpmm_memory_meter_logs_latest |
can_compress_scripts |
widget_theysaidso_widget |
fs_debug_mode |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Memory Meter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,054 ▲308 | 13.48 ▼0.75 | 10.12 ▲8.52 | 30.63 ▼12.44 |
Dashboard /wp-admin | 2,274 ▲97 | 5.75 ▲0.07 | 92.05 ▲0.29 | 43.62 ▲2.72 |
Posts /wp-admin/edit.php | 2,184 ▲81 | 2.05 ▲0.02 | 39.08 ▲3.16 | 34.36 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,579 ▲53 | 22.56 ▼0.70 | 685.93 ▲62.50 | 54.52 ▼0.15 |
Media Library /wp-admin/upload.php | 1,483 ▲83 | 4.29 ▲0.12 | 101.43 ▼5.83 | 50.69 ▲8.33 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,135 | 2.10 | 26.66 | 28.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wpmm-memory-meter/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- fs_debug_mode
- fs_accounts
- widget_theysaidso_widget
- fs_active_plugins
- wpmm_memory_meter_logs_latest
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 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
6 plugin tags: memory, ram, memory limit, memory usage, memory meter...
wpmm-memory-meter/wpmm-memory-meter.php Passed 13 tests
The main file in "Memory Meter" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
24 characters long description:
WordPress Plugin by 99w.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected34,105 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 8,046 | 17,247 | 33,671 |
JavaScript | 7 | 48 | 65 | 211 |
Sass | 2 | 15 | 6 | 142 |
XML | 2 | 9 | 3 | 55 |
CSS | 15 | 0 | 2 | 15 |
JSON | 1 | 0 | 0 | 11 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 92.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,273 | |
▷ Static methods | 198 | 15.55% |
▷ Public methods | 883 | 69.36% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 373 | 29.30% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/wpmm-memory-meter.png | 36.15KB | 23.46KB | ▼ 35.11% |