79% contributors

Code Review | SX Welcome Pages

WordPress plugin SX Welcome Pages scored79%from 54 tests.

About plugin

  • Plugin page: contributors
  • Plugin version: 0.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Dec 28, 2016
  • Latest release: Aug 24, 2023
  • Number of updates: 22
  • Update frequency: every 110.4 days
  • Top authors: Confridin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by SX Welcome Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.95 ▼3.56
Dashboard /wp-admin3.33 ▼0.0244.92 ▼16.34
Posts /wp-admin/edit.php3.38 ▲0.0246.96 ▲3.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.45 ▼11.11
Media Library /wp-admin/upload.php3.25 ▲0.0237.33 ▲2.21
Potrivit /wp-admin/index.php?page=contributors3.2229.20
Who is managing this website ? /wp-admin/index.php?page=contributors-who3.2336.51

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SX Welcome Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,416 ▼1,33010.26 ▼4.111.69 ▼0.2135.75 ▼9.30
Dashboard /wp-admin2,202 ▲175.83 ▲0.02106.69 ▲2.3846.51 ▲2.62
Posts /wp-admin/edit.php2,100 ▲112.04 ▲0.0340.81 ▲5.3834.40 ▲0.99
Add New Post /wp-admin/post-new.php1,539 ▲2523.00 ▲5.38668.57 ▼23.1737.61 ▼8.16
Media Library /wp-admin/upload.php1,399 ▲114.33 ▲0.08104.29 ▲8.2344.07 ▼6.09
Potrivit /wp-admin/index.php?page=contributors7912.0222.8031.75
Who is managing this website ? /wp-admin/index.php?page=contributors-who8102.0523.4335.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/contributors/contributors.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/contributors/admin-home-data.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/contributors/admin-home-data.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/contributors/admin-home-data.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: welcome page, community, login, members, users

contributors/contributors.php Passed 13 tests

"SX Welcome Pages" version 0.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
A WordPress plugin to display a contributors page on admin pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin239 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53895145
PO File2344294

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods770.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
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
There are no PNG files in this plugin