10% poplogin

Code Review | PopLogin

WordPress plugin PopLogin scored10%from 54 tests.

About plugin

  • Plugin page: poplogin
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.1.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2017
  • Latest release: May 5, 2019
  • Number of updates: 9
  • Update frequency: every 70.3 days
  • Top authors: tradesouthwest@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,553 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/poplogin/public/poplogin-tswplugin-public.php+25
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.97MB] [CPU: ▼53.38ms] Passed 4 tests

This is a short check of server-side resources used by PopLogin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.05 ▼31.84
Dashboard /wp-admin2.05 ▼1.305.68 ▼54.83
Posts /wp-admin/edit.php2.05 ▼1.316.38 ▼42.31
Add New Post /wp-admin/post-new.php2.05 ▼3.845.89 ▼84.54
Media Library /wp-admin/upload.php2.05 ▼1.186.12 ▼26.43
Poplogin /wp-admin/options-general.php?page=poplogin2.056.67

Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for PopLogin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲23213.64 ▼0.746.32 ▲4.7847.17 ▲7.53
Dashboard /wp-admin2,210 ▲224.89 ▼0.02109.42 ▲0.7645.09 ▲0.01
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0440.82 ▲4.4735.02 ▲1.05
Add New Post /wp-admin/post-new.php1,536 ▲323.30 ▲0.20578.38 ▼15.8553.50 ▲3.01
Media Library /wp-admin/upload.php1,389 ▲14.20 ▲0.0196.13 ▼25.6640.84 ▼3.22
Poplogin /wp-admin/options-general.php?page=poplogin9442.0124.8029.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/poplogin/public/poplogin-tswplugin-public.php+25
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=poplogin
    • > Notice in wp-content/plugins/poplogin/admin/poplogin-tswplugin-admin.php+169
    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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poplogin/includes/poplogin-tswplugin.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poplogin/admin/poplogin-tswplugin-admin.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=poplogin
    • > Network (severe)
    wp-content/plugins/poplogin/lib/alpha-twitter.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #4 (Admin page with settings)
The official readme.txt might help

poplogin/poplogin.php 92% from 13 tests

Analyzing the main PHP file in "PopLogin" version 1.0.0
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
No dangerous file extensions were detected435 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP677209327
CSS1151094
JavaScript171014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.23MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/poplogin-default-logo.png238.00KB259.25KB0.00%