83% wpspx-login

Code Review | WPSPX Login

WordPress plugin WPSPX Login scored83%from 54 tests.

About plugin

  • Plugin page: wpspx-login
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.5.3
  • WordPress version: 6.3.1
  • First release: Aug 12, 2020
  • Latest release: Nov 12, 2020
  • Number of updates: 9
  • Update frequency: every 10.2 days
  • Top authors: beardeddev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /546 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.88ms] Passed 4 tests

Server-side resources used by WPSPX Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.11 ▼2.39
Dashboard /wp-admin3.34 ▲0.0349.49 ▼1.65
Posts /wp-admin/edit.php3.39 ▲0.0348.55 ▼11.66
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.91 ▼27.80
Media Library /wp-admin/upload.php3.26 ▲0.0335.22 ▼0.61

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WPSPX Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲20214.21 ▼0.595.26 ▲3.0337.68 ▼13.59
Dashboard /wp-admin2,228 ▲405.04 ▲0.16115.94 ▼3.2242.49 ▼1.57
Posts /wp-admin/edit.php2,110 ▲182.32 ▲0.2641.05 ▼12.1535.72 ▼9.45
Add New Post /wp-admin/post-new.php1,537 ▲2318.28 ▲0.58653.39 ▲0.6837.22 ▼23.87
Media Library /wp-admin/upload.php1,401 ▲104.40 ▲0.2399.68 ▲3.7941.04 ▲0.50

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpspx-login/lib/helpers/misc.php
    • > /wp-content/plugins/wpspx-login/wp-spektrix-login.php
    • > /wp-content/plugins/wpspx-login/lib/helpers/options-page.php
    • > /wp-content/plugins/wpspx-login/settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 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
6 plugin tags: booking, spektrix, theatre, tickets, wpspx...

wpspx-login/wp-spektrix-login.php 77% from 13 tests

This is the main PHP file of "WPSPX Login" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpspx-login.php" instead of "wp-spektrix-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin200 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP45531191
SVG1006
JavaScript2002
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods150.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin