83% pit-login-welcome

Code Review | Pit Login Welcome

WordPress plugin Pit Login Welcome scored 83% from 54 tests.

About plugin

  • Plugin page: pit-login-welcome
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2013
  • Latest release: Apr 21, 2014
  • Number of updates: 32
  • Update frequency: every 4.6 days
  • Top authors: bihosh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Pit Login Welcome
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.55 ▼3.30
Dashboard /wp-admin3.34 ▲0.0447.53 ▼4.75
Posts /wp-admin/edit.php3.46 ▲0.1052.41 ▲6.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.44 ▲6.26
Media Library /wp-admin/upload.php3.24 ▲0.0142.24 ▲8.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Pit Login Welcome
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲20414.89 ▲0.292.09 ▲0.1544.41 ▼3.79
Dashboard /wp-admin2,364 ▲1556.66 ▲1.80117.74 ▲16.1788.56 ▲46.46
Posts /wp-admin/edit.php2,285 ▲1963.67 ▲1.6355.67 ▲22.3968.98 ▲33.70
Add New Post /wp-admin/post-new.php1,580 ▲6624.25 ▲6.70578.82 ▼74.1430.80 ▼19.81
Media Library /wp-admin/upload.php1,424 ▲454.39 ▲0.1894.68 ▼2.7673.18 ▲30.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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 9 options
    • ax_custom_login_bg_color
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • ax_custom_login_image
    • ax_custom_login_message
    • can_compress_scripts

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
Even though no errors were found, 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pit-login-welcome/index.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === pit-login-welcome === )
  • Screenshots: Please add images for these screenshots: #1 (Logo & background color change in login page), #2 (Logo & background image change in login page), #3 (Premium quality admin page)
You can look at the official readme.txt

pit-login-welcome/index.php 92% from 13 tests

"Pit Login Welcome" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("pit-login-welcome.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin301 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1809170
JavaScript235995
CSS119736

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.32MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.54KB0.74KB▼ 51.84%
screenshot-1.png14.50KB5.39KB▼ 62.83%
images/bg.png1.21KB0.43KB▼ 64.20%
screenshot-3.png61.66KB20.72KB▼ 66.40%
screenshot-2.png243.78KB79.06KB▼ 67.57%