89% wp-file-checker

Code Review | SC filechecker

WordPress plugin SC filechecker scored89%from 54 tests.

About plugin

  • Plugin page: wp-file-checker
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: May 25, 2016
  • Latest release: Jul 30, 2016
  • Number of updates: 4
  • Update frequency: every 16.8 days
  • Top authors: mstan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.57ms] Passed 4 tests

Server-side resources used by SC filechecker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1535.44 ▼1.53
Dashboard /wp-admin3.45 ▲0.1543.85 ▼0.97
Posts /wp-admin/edit.php3.57 ▲0.2144.49 ▼0.43
Add New Post /wp-admin/post-new.php6.03 ▲0.1591.98 ▲0.65
Media Library /wp-admin/upload.php3.38 ▲0.1539.31 ▲4.79
Manage backups /wp-admin/admin.php?page=SC_backup3.3734.78
Settings /wp-admin/admin.php?page=SC_settings3.3531.04
SC filechecker /wp-admin/admin.php?page=SC_main3.3530.60

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
filechecker_extensions_to_scan
filechecker_email
widget_theysaidso_widget
can_compress_scripts
filechecker_scan_dir
filechecker_dirs_to_exclude
theysaidso_admin_options
filechecker_files_to_exclude
filechecker_version
...

Browser metrics Passed 4 tests

An overview of browser requirements for SC filechecker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.25 ▼0.311.58 ▼0.1337.75 ▼7.15
Dashboard /wp-admin2,223 ▲455.55 ▼0.1886.17 ▼14.8440.33 ▼3.69
Posts /wp-admin/edit.php2,131 ▲311.99 ▲0.0336.65 ▼0.8737.05 ▼0.88
Add New Post /wp-admin/post-new.php1,551 ▲2523.27 ▲0.18646.85 ▼47.7246.13 ▼13.02
Media Library /wp-admin/upload.php1,434 ▲344.24 ▲0.03107.45 ▲1.6847.64 ▼0.46
Manage backups /wp-admin/admin.php?page=SC_backup8682.0124.7627.24
Settings /wp-admin/admin.php?page=SC_settings9302.1624.1447.64
SC filechecker /wp-admin/admin.php?page=SC_main8882.0122.2626.26

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-file-checker === )
Please take inspiration from this readme.txt

wp-file-checker/sc_filechecker.php 92% from 13 tests

This is the main PHP file of "SC filechecker" version 0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-file-checker.php" instead of "sc_filechecker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,098 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP93622791,090
CSS1008

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.33
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/mail_banner.png5.94KB3.01KB▼ 49.35%