83% plugin-compatibility

Code Review | Plugin Compatibility Table

WordPress plugin Plugin Compatibility Table scored83%from 54 tests.

About plugin

  • Plugin page: plugin-compatibility
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Dec 2, 2023
  • Latest release: Dec 3, 2023
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: switcorp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.19ms] Passed 4 tests

This is a short check of server-side resources used by Plugin Compatibility Table
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.38 ▼6.34
Dashboard /wp-admin3.42 ▲0.1246.42 ▼6.94
Posts /wp-admin/edit.php3.52 ▲0.1648.96 ▼1.30
Add New Post /wp-admin/post-new.php6.13 ▲0.2485.60 ▼9.99
Media Library /wp-admin/upload.php3.36 ▲0.1332.38 ▼1.50
Plugin Compatibility /wp-admin/tools.php?page=plcom3.3135.24

Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/plugin-compatibility/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/plugin-compatibility/admin/img/wpcompatible-logo.png\357\200\272Zone.Identifier"
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Compatibility Table
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲9413.76 ▼0.638.09 ▲6.1137.83 ▼6.46
Dashboard /wp-admin2,206 ▲265.58 ▼0.0895.11 ▲0.2142.58 ▼0.72
Posts /wp-admin/edit.php2,108 ▲81.96 ▼0.1940.61 ▼1.2237.96 ▲1.47
Add New Post /wp-admin/post-new.php1,542 ▲1623.20 ▼0.40692.94 ▲28.2661.21 ▲10.37
Media Library /wp-admin/upload.php1,411 ▲114.18 ▼0.0797.88 ▼1.3941.82 ▼3.06
Plugin Compatibility /wp-admin/tools.php?page=plcom1,4292.0126.7750.02

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/plugin-compatibility/public/partials/wp-compatible-public-display.php
    • > /wp-content/plugins/plugin-compatibility/admin/partials/wp-compatible-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (How to use Plugin Compatibility Plugin), #2 (Plugin Compatibility Plugin Screenshot)
The official readme.txt might help

plugin-compatibility/plugin-compatibility.php 92% from 13 tests

The primary PHP file in "Plugin Compatibility Table" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected792 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/wpcompatible-logo.png18.45KB8.67KB▼ 53.04%