84% ssw-additional-checks

Code Review | SSW Additional Checks

WordPress plugin SSW Additional Checks scored84%from 54 tests.

About plugin

  • Plugin page: ssw-additional-ch...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 5, 2016
  • Latest release: Jul 12, 2017
  • Number of updates: 3
  • Update frequency: every 123.3 days
  • Top authors: shah.neel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /550 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by SSW Additional Checks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.93 ▼8.79
Dashboard /wp-admin3.31 ▲0.0146.58 ▼4.07
Posts /wp-admin/edit.php3.36 ▲0.0151.34 ▲3.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.18 ▼10.96
Media Library /wp-admin/upload.php3.24 ▲0.0135.61 ▲0.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by SSW Additional Checks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.361.58 ▼0.3838.41 ▼5.39
Dashboard /wp-admin2,209 ▲214.86 ▼0.0299.51 ▼5.8139.69 ▼4.11
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0141.77 ▲7.6234.38 ▼3.01
Add New Post /wp-admin/post-new.php1,533 ▼023.20 ▲0.22631.16 ▼16.3047.67 ▼0.81
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0596.45 ▼19.2141.28 ▼7.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ssw-additional-checks/ssw-additional-checks.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wp-signup, site setup wizard additonal checks, site registration, plugin, multisite

ssw-additional-checks/ssw-additional-checks.php Passed 13 tests

The main PHP file in "SSW Additional Checks" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
This plugin provides additional checks a super admin can customize before displaying Site Setup Wizard's steps to a user.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111826

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.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
PNG images were not found in this plugin