10% optinmate

Code Review | Optinmate

WordPress plugin Optinmate scored10%from 54 tests.

About plugin

  • Plugin page: optinmate
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2019
  • Latest release: Apr 29, 2019
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: optinmate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /509 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > User error in wp-content/plugins/optinmate/optinmate.php+26
    Please install WooCommerce before activating.

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

A check of server-side resources used by Optinmate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.91 ▼6.62
Dashboard /wp-admin3.31 ▲0.0046.78 ▼11.52
Posts /wp-admin/edit.php3.36 ▲0.0044.72 ▼5.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.85 ▼10.75
Media Library /wp-admin/upload.php3.23 ▲0.0039.00 ▲0.17

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Optinmate: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.012.48 ▲0.7052.76 ▲8.87
Dashboard /wp-admin2,195 ▲185.61 ▼0.0388.14 ▼0.9139.45 ▼2.74
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0138.83 ▲0.0940.05 ▲6.14
Add New Post /wp-admin/post-new.php1,526 ▼223.30 ▲0.19662.22 ▼30.4851.89 ▼2.68
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.0296.72 ▼10.4843.35 ▼1.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: store design, optin, analytics, campaigns, conversions...

optinmate/optinmate.php Passed 13 tests

"Optinmate" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Email Collection, Coupons & Social Popups, Bars & Cards.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected95 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2265495

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin