84% multisite-login-logos

Code Review | Multisite Login Logos

WordPress plugin Multisite Login Logos scored84%from 54 tests.

About plugin

  • Plugin page: multisite-login-l...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 28, 2016
  • Latest release: Jun 18, 2016
  • Number of updates: 51
  • Update frequency: every 1.0 days
  • Top authors: prontotools (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.59ms] Passed 4 tests

This is a short check of server-side resources used by Multisite Login Logos
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.61 ▼6.12
Dashboard /wp-admin3.32 ▲0.0143.50 ▼4.53
Posts /wp-admin/edit.php3.37 ▲0.0148.54 ▲3.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.73 ▼3.27
Media Library /wp-admin/upload.php3.24 ▲0.0136.00 ▲5.82

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Multisite Login Logos
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.161.70 ▲0.0440.66 ▼0.08
Dashboard /wp-admin2,206 ▲155.88 ▼0.05107.30 ▲7.4940.34 ▼1.08
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0639.40 ▲0.9435.64 ▲3.24
Add New Post /wp-admin/post-new.php1,542 ▲2318.09 ▼5.05660.36 ▲37.3956.51 ▲0.50
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.04104.29 ▲10.8246.55 ▲3.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/multisite-login-logos/tests/bootstrap.php on line 6
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/multisite-login-logos/tests/bootstrap.php on line 6
    • > PHP Fatal error
      require_once(): Failed opening required 'multisite-login-logos.php' (include_path='.:/usr/share/php') in wp-content/plugins/multisite-login-logos/tests/test-multisite-login-logos.php on line 3
    • > PHP Warning
      require_once(multisite-login-logos.php): failed to open stream: No such file or directory in wp-content/plugins/multisite-login-logos/tests/test-multisite-login-logos.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-login-logos/class-multisite-login-logos.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: site, multisite, logo, login, custom

multisite-login-logos/multisite-login-logos.php 92% from 13 tests

The main PHP script in "Multisite Login Logos" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

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 detected649 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP45710230
Bourne Shell34114197
Dockerfile1234119
Bourne Again Shell27171
Markdown112018
XML10014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 4.30MB with 2.80MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png264.79KB87.64KB▼ 66.90%
screenshot-2.png1,928.82KB667.43KB▼ 65.40%
assets/screenshot-1.png264.79KB87.64KB▼ 66.90%
assets/screenshot-2.png1,928.82KB667.43KB▼ 65.40%
tests/login-logo.png12.86KB5.01KB▼ 61.06%