83% fix-windows-compatibility

Code Review | Windows Compatibility Fix

WordPress plugin Windows Compatibility Fix scored83%from 54 tests.

About plugin

  • Plugin page: fix-windows-compa...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: May 4, 2017
  • Latest release: Oct 22, 2018
  • Number of updates: 5
  • Update frequency: every 107.2 days
  • Top authors: davejesch (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /13,626 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.02MB] [CPU: ▼2.08ms] Passed 4 tests

A check of server-side resources used by Windows Compatibility Fix
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.79 ▼2.77
Dashboard /wp-admin3.32 ▲0.0251.65 ▲3.99
Posts /wp-admin/edit.php3.37 ▲0.0246.63 ▼0.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.13 ▼2.30
Media Library /wp-admin/upload.php3.24 ▲0.0233.45 ▼3.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Windows Compatibility Fix
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5414.78 ▲0.472.13 ▲0.0144.19 ▲0.99
Dashboard /wp-admin2,206 ▲185.88 ▼0.0096.11 ▼27.6839.66 ▼5.21
Posts /wp-admin/edit.php2,068 ▼212.03 ▲0.0237.58 ▲0.2932.07 ▼3.57
Add New Post /wp-admin/post-new.php1,532 ▲1818.41 ▲0.92642.15 ▼39.9458.04 ▲3.07
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0197.55 ▼8.4742.49 ▼3.48

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fix-windows-compatibility/windows-compatibility-fix.php:96

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: Screenshot #1 (Plugin page.) image required
You can take inspiration from this readme.txt

fix-windows-compatibility/windows-compatibility-fix.php 77% from 13 tests

The main PHP script in "Windows Compatibility Fix" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/language")
  • Main file name: The principal plugin file should be the same as the plugin slug ("fix-windows-compatibility.php" instead of "windows-compatibility-fix.php")

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
Everything looks great! No dangerous files found in this plugin54 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP193554

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.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
There are no PNG files in this plugin