72% the-moneytizer

Code Review | The Moneytizer

WordPress plugin The Moneytizer scored 72% from 54 tests.

About plugin

  • Plugin page: the-moneytizer
  • Plugin version: 9.5.10
  • PHP compatiblity: 5.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9.2
  • WordPress version: 5.9.2
  • First release: Feb 18, 2016
  • Latest release: Apr 5, 2022
  • Number of updates: 1,000
  • Update frequency: every 0.9 days
  • Top authors: lvaudore (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

1,000+ active / 57,152 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼57.55ms] Passed 4 tests

A check of server-side resources used by The Moneytizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5474.85 ▲8.28
Dashboard /wp-admin3.88 ▲0.47387.60 ▲346.56
Posts /wp-admin/edit.php4.11 ▲0.47413.73 ▲359.67
Add New Post /wp-admin/post-new.php6.52 ▼0.45416.39 ▼880.43
Media Library /wp-admin/upload.php3.83 ▲0.53356.73 ▲295.38
The Moneytizer /wp-admin/options-general.php?page=themoneytizer3.82381.56

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

Input-output and database impact of this plugin
Please try to fix the following items
  • Try to limit filesystem usage to 25MB (currently using 36.10MB)
Filesystem: 118 new files
Database: no new tables, 10 new options
New WordPress options
themoneytizer_setting_init
themoneytizer_user_local_lang
themoneytizer_plugin_version
themoneytizer_user_language
themoneytizer_data_statistics
themoneytizer_data_introduction
themoneytizer_data_lazy
themoneytizer_user_notifications
widget_themoneytizer_widget
count_call

Browser metrics Passed 4 tests

A check of browser resources used by The Moneytizer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,988 ▲23016.26 ▲0.8514.65 ▲1.762.97 ▼0.93
Dashboard /wp-admin2,976 ▲886.39 ▲0.02185.14 ▼34.21186.81 ▼27.76
Posts /wp-admin/edit.php2,749 ▲793.42 ▼0.0284.29 ▼4.30191.96 ▲13.04
Add New Post /wp-admin/post-new.php1,781 ▲14116.56 ▼3.03614.19 ▼71.63216.11 ▼0.09
Media Library /wp-admin/upload.php1,821 ▲1245.75 ▲0.03165.95 ▼21.23242.49 ▲5.70
The Moneytizer /wp-admin/options-general.php?page=themoneytizer1,9388.08245.56181.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 does not fully uninstall, leaving 3 options in the database
    • themoneytizer_user_local_lang
    • count_call
    • widget_themoneytizer_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Notice in wp-content/plugins/the-moneytizer/themoneytizer-shortcode.php+57
    Trying to get property 'site_tags' of non-object
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/the-moneytizer/core/core_statistics.php+4
    Trying to get property 'validity' of non-object

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
  • 74× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: format in wp-content/plugins/the-moneytizer/tab/inc/inc_generic_tags.php on line 4
    • > PHP Notice
      Undefined variable: src_iframe in wp-content/plugins/the-moneytizer/core/inc/inc_lazy_template.php on line 27
    • > PHP Notice
      Undefined variable: ad_id in wp-content/plugins/the-moneytizer/core/inc/inc_lazy_template.php on line 21
    • > PHP Notice
      Undefined variable: ad_id in wp-content/plugins/the-moneytizer/core/inc/inc_lazy_template.php on line 25
    • > PHP Notice
      Undefined variable: ad_id in wp-content/plugins/the-moneytizer/core/inc/inc_lazy_template.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/the-moneytizer/tab/inc/inc_heared_about_list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/the-moneytizer/tab/inc/inc_bill_form.php:4
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/the-moneytizer/core/inc/inc_lazy_template.php on line 13
    • > PHP Notice
      Trying to get property 'start' of non-object in wp-content/plugins/the-moneytizer/core/inc/inc_lazy_template.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/the-moneytizer/tab/inc/inc_generic_tags.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #el-intro-0 not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #el-intro-1 not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #el-intro-2 not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #el-intro-3 not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #el-intro-4 not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #el-intro-5 not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #el-intro-6 not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #adstxt_panel not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #el-intro-8 not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Console-api (warning) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:45898 "Element to highlight #el-intro-9 not found"
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Javascript (severe) in unknown
    https://unpkg.com/driver.js/dist/driver.min.js?ver=5.9.2 0:46549 Uncaught Error: There are no steps defined to iterate
    • > GET request to /wp-admin/options-general.php?page=themoneytizer
    • > Javascript (severe) in unknown
    https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.bundle.js?ver=5.9.2 7759:18 Uncaught TypeError: Cannot read properties of null (reading 'length')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt might help

the-moneytizer/themoneytizer.php 92% from 13 tests

Analyzing the main PHP file in "The Moneytizer" version 9.5.10
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("the-moneytizer.php" instead of "themoneytizer.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
No dangerous file extensions were detected12,116 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PO File72,6885,0235,136
PHP383122163,336
JavaScript21179843,003
CSS11432641

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity16.50
▷ Minimum class complexity9.00
▷ Maximum class complexity24.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods969.23%
▷ Protected methods00.00%
▷ Private methods430.77%
Functions50
▷ Named functions4998.00%
▷ Anonymous functions12.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 PNG files occupy 0.62MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/format_2.png2.97KB2.06KB▼ 30.63%
assets/format_29.png2.26KB2.48KB0.00%
assets/format_25.png2.71KB2.17KB▼ 19.76%
assets/format_3.png2.87KB1.99KB▼ 30.90%
assets/format_31.png3.94KB2.17KB▼ 44.99%