94% potentially

Code Review | Potentially - helps you gain new customers

WordPress plugin Potentially - helps you gain new customers scored 94% from 54 tests.

About plugin

  • Plugin page: potentially
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Nov 1, 2020
  • Latest release: Nov 4, 2020
  • Number of updates: 9
  • Update frequency: every 1.7 days
  • Top authors: overflowcafe (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active / 211 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼147.09ms] Passed 4 tests

An overview of server-side resources used by Potentially - helps you gain new customers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0230.37 ▲3.30
Dashboard /wp-admin3.16 ▲0.10997.56 ▲958.30
Posts /wp-admin/edit.php3.14 ▲0.0336.61 ▼4.73
Add New Post /wp-admin/post-new.php5.45 ▲0.0175.94 ▼593.70
Media Library /wp-admin/upload.php3.03 ▲0.0230.62 ▲6.78

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: no files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Potentially - helps you gain new customers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲18116.05 ▲0.928.66 ▲3.5956.08 ▼19.90
Dashboard /wp-admin3,070 ▲1746.19 ▲0.03117.99 ▼15.48211.98 ▲33.58
Posts /wp-admin/edit.php2,784 ▲443.23 ▼0.0166.81 ▲1.50136.29 ▼4.53
Add New Post /wp-admin/post-new.php3,723 ▼2018.82 ▼0.38452.65 ▲30.01164.76 ▲2.45
Media Library /wp-admin/upload.php1,795 ▲435.54 ▲0.09144.36 ▼7.43186.75 ▼6.17

Uninstaller [IO: ✅] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/potentially/includes/class-oc-potentially-dashboard-widget.php
    • > /wp-content/plugins/potentially/potentially.php
    • > /wp-content/plugins/potentially/includes/class-oc-potentially.php
    • > /wp-content/plugins/potentially/includes/oc-potentially-commons.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

potentially/potentially.php Passed 13 tests

"Potentially - helps you gain new customers" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
How many new paying customers can you gain this month?

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
Good job! No executable or dangerous file extensions detected1,923 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS211141,784
PHP42741139

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin