83% moneypls

Code Review | MoneyPls

WordPress plugin MoneyPls scored83%from 54 tests.

About plugin

  • Plugin page: moneypls
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 17, 2020
  • Latest release: Mar 18, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: isnit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /487 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.22ms] Passed 4 tests

An overview of server-side resources used by MoneyPls
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.29 ▲0.83
Dashboard /wp-admin3.31 ▼0.0350.72 ▼12.86
Posts /wp-admin/edit.php3.36 ▲0.0148.74 ▲3.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.67 ▼11.41
Media Library /wp-admin/upload.php3.24 ▲0.0136.88 ▲2.56
MoneyPls Config /wp-admin/options-general.php?page=insert-script-in-header-and-footer-option3.2332.03

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for MoneyPls
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.76 ▲0.505.87 ▲4.1046.08 ▲1.63
Dashboard /wp-admin2,210 ▲224.85 ▼1.0197.49 ▼16.7038.86 ▼3.62
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0138.76 ▲1.7835.42 ▼0.28
Add New Post /wp-admin/post-new.php1,536 ▲2323.36 ▲5.86701.42 ▲28.3060.29 ▲7.27
Media Library /wp-admin/upload.php1,389 ▲44.20 ▲0.01112.64 ▲10.8145.64 ▲2.86
MoneyPls Config /wp-admin/options-general.php?page=insert-script-in-header-and-footer-option7882.0326.5627.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=insert-script-in-header-and-footer-option
    • > Notice in wp-content/plugins/moneypls/options.php+55
    Undefined variable: footer_script

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
  • Screenshots: Add a description for screenshot #4 in moneypls/assets to your readme.txt
The official readme.txt is a good inspiration

moneypls/moneypls-wp.php 92% from 13 tests

"MoneyPls" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("moneypls.php" instead of "moneypls-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin141 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP350897
CSS12044

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin