79% loopingo

Code Review | loopingo Monetise Plugin

WordPress plugin loopingo Monetise Plugin scored 79% from 54 tests.

About plugin

  • Plugin page: loopingo
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.1
  • WordPress version: 6.3.1
  • First release: Jul 12, 2019
  • Latest release: May 5, 2021
  • Number of updates: 19
  • Update frequency: every 35.0 days
  • Top authors: loopingo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 742 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.03MB] [CPU: ▼2.59ms] Passed 4 tests

Server-side resources used by loopingo Monetise Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.64 ▼5.62
Dashboard /wp-admin3.34 ▲0.0445.13 ▼2.02
Posts /wp-admin/edit.php3.39 ▲0.0345.04 ▼0.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.12 ▼2.44
Media Library /wp-admin/upload.php3.26 ▲0.0336.24 ▲5.56
loopingo /wp-admin/options-general.php?page=loopingo3.2029.94

Server storage [IO: ▲0.02MB] [DB: ▲0.33MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for loopingo Monetise Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.26 ▼1.051.99 ▼0.6245.80 ▲3.45
Dashboard /wp-admin2,210 ▲224.85 ▼1.03106.35 ▲1.8039.99 ▼3.26
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0139.54 ▲3.8935.84 ▼0.18
Add New Post /wp-admin/post-new.php1,547 ▲1418.81 ▼4.23629.07 ▼29.1556.77 ▲1.89
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0692.65 ▼5.1042.64 ▲1.58
loopingo /wp-admin/options-general.php?page=loopingo8182.0526.9025.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • 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)
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=loopingo
    • > Notice in wp-content/plugins/loopingo/loopingo.php+108
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loopingo/loopingo.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: marketing, loopingo, simplify, adverts, banners

loopingo/loopingo.php Passed 13 tests

This is the main PHP file of "loopingo Monetise Plugin" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Add loopingo to WooCommerce Thank You Page

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
There were no executable files found in this plugin135 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13250135

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions11
▷ Named functions11100.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 are no PNG files in this plugin