10% monage

Code Review | Monage

WordPress plugin Monage scored10%from 54 tests.

About plugin

  • Plugin page: monage
  • Plugin version: 1.46
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.0
  • WordPress version: 6.3.1
  • First release: Oct 26, 2017
  • Latest release: Jan 23, 2018
  • Number of updates: 14
  • Update frequency: every 6.4 days
  • Top authors: raspi0124 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,107 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/monage/monage.php+75
    Undefined variable: monage_zeny

Server metrics [RAM: ▼1.90MB] [CPU: ▼51.91ms] Passed 4 tests

Analyzing server-side resources used by Monage
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.3711.67 ▼32.84
Dashboard /wp-admin2.11 ▼1.206.66 ▼42.27
Posts /wp-admin/edit.php2.11 ▼1.256.62 ▼42.79
Add New Post /wp-admin/post-new.php2.11 ▼3.787.44 ▼89.72
Media Library /wp-admin/upload.php2.11 ▼1.126.19 ▼29.86
monage /wp-admin/options-general.php?page=monage-options-submenu2.116.82

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
monage_twitter_account
db_upgraded
monage_picture_width
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
monage_default_mona

Browser metrics Passed 4 tests

Checking browser requirements for Monage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.29 ▼1.091.79 ▼0.2737.23 ▼8.15
Dashboard /wp-admin2,210 ▲224.86 ▼0.02111.15 ▲5.0144.69 ▲2.04
Posts /wp-admin/edit.php2,090 ▲11.98 ▼0.0439.47 ▼0.9534.89 ▼5.85
Add New Post /wp-admin/post-new.php1,536 ▲323.18 ▲0.00579.46 ▼112.4959.11 ▲3.89
Media Library /wp-admin/upload.php1,386 ▼24.17 ▼0.0295.94 ▼1.1141.59 ▼1.14
monage /wp-admin/options-general.php?page=monage-options-submenu8902.0625.0563.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/monage/monage.php+75
    Undefined variable: monage_zeny
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • monage_picture_width
    • theysaidso_admin_options
    • monage_twitter_account
    • can_compress_scripts
    • widget_recent-comments
    • monage_default_mona
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=monage-options-submenu
    • > Notice in wp-content/plugins/monage/monage.php+75
    Undefined variable: monage_zeny

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/monage/monage.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: monacoin, mona, crypto currency, virtual currency

monage/monage.php Passed 13 tests

Analyzing the main PHP file in "Monage" version 1.46
66 characters long description:
Let's make monage (giving monacoin) to wordpress blog more easier!

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
There were no executable files found in this plugin167 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14746165
Markdown1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
monage.png111.90KB52.52KB▼ 53.07%