84% monetate

Code Review | Monetate

WordPress plugin Monetate scored84%from 54 tests.

About plugin

  • Plugin page: monetate
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 11, 2014
  • Latest release: Dec 7, 2015
  • Number of updates: 3
  • Update frequency: every 120.3 days
  • Top authors: pilch74 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /843 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Monetate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.37 ▼1.25
Dashboard /wp-admin3.31 ▲0.0148.56 ▼11.05
Posts /wp-admin/edit.php3.36 ▲0.0149.42 ▼4.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.95 ▼9.19
Media Library /wp-admin/upload.php3.23 ▲0.0137.64 ▲0.06
Monetate /wp-admin/options-general.php?page=monetate_script3.2033.98

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
mon_alphanumeric_name
widget_recent-comments
mon_domain_name
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Monetate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.27 ▼1.131.97 ▼0.0841.25 ▼7.52
Dashboard /wp-admin2,210 ▲254.85 ▼1.00108.50 ▼17.9839.49 ▼7.36
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0639.19 ▲3.2134.95 ▼1.38
Add New Post /wp-admin/post-new.php1,536 ▲223.27 ▲0.06595.78 ▼46.9666.77 ▲14.71
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.14118.53 ▲9.0546.29 ▼0.27
Monetate /wp-admin/options-general.php?page=monetate_script8352.0328.6424.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/monetate/monetate-wordpress-plugin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: ab testing, optimization, optimisation, website optimization, monetate...

monetate/monetate-wordpress-plugin.php 92% from 13 tests

The principal PHP file in "Monetate" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("monetate.php" instead of "monetate-wordpress-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin89 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151989

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin