78% jine-optins-popups-bars

Code Review | Jine Optins Popups & Bars

WordPress plugin Jine Optins Popups & Bars scored78%from 54 tests.

About plugin

  • Plugin page: jine-optins-popup...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 13, 2017
  • Latest release: Jul 13, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: jayasrinagrale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /708 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Jine Optins Popups & Bars
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.98 ▼4.95
Dashboard /wp-admin3.32 ▼0.0351.24 ▼15.77
Posts /wp-admin/edit.php3.37 ▲0.0152.75 ▲5.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.53 ▼8.66
Media Library /wp-admin/upload.php3.24 ▲0.0136.56 ▼2.10

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 226 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Jine Optins Popups & Bars
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲5913.28 ▼1.414.33 ▲2.3443.65 ▼0.15
Dashboard /wp-admin2,239 ▲365.93 ▲0.04108.45 ▲5.2671.83 ▲25.89
Posts /wp-admin/edit.php2,118 ▲181.99 ▲0.0141.09 ▲3.7434.63 ▼0.01
Add New Post /wp-admin/post-new.php1,539 ▲1317.53 ▲0.03683.27 ▲32.2177.05 ▲27.26
Media Library /wp-admin/upload.php1,409 ▲94.24 ▼0.1399.05 ▼10.5868.51 ▲21.84

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/jine-optins-popups-bars/jine-optins-popups-bars.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jine-optins-popups-bars/wordpress/client-load.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jine-optins-popups-bars/wordpress/yetience_config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jine-optins-popups-bars/wordpress/yetience-class.php:25
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jine-optins-popups-bars/wordpress/admin-load.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: There are too many tags (26 tag instead of maximum 10)
You can take inspiration from this readme.txt

jine-optins-popups-bars/jine-optins-popups-bars.php Passed 13 tests

The principal PHP file in "Jine Optins Popups & Bars" v. 0.0.1 is loaded by WordPress automatically on each request
56 characters long description:
Optin plugin that adds Exit popups and Bars on a website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected35,471 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1033,86716,86920,711
CSS102,30479911,341
Markdown543901,278
HTML37164521950
JSON1540488
PHP6156118410
SVG100288
YAML1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods729.17%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
24 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin-interface/images/ypp_icon.png0.53KB0.42KB▼ 20.22%
admin-interface/images/admin-icons/cross.png3.02KB0.44KB▼ 85.44%
common/images/social-icons/round/pinterest.png5.59KB2.98KB▼ 46.59%
admin-interface/images/question.png0.53KB0.43KB▼ 18.53%
common/images/social-icons/round/linkedin.png5.45KB2.61KB▼ 52.14%