94% check-conflicts

Code Review | Check Conflicts

WordPress plugin Check Conflicts scored 94% from 54 tests.

About plugin

  • Plugin page: check-conflicts
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 5.9.2
  • First release: Jan 3, 2020
  • Latest release: Dec 12, 2020
  • Number of updates: 12
  • Update frequency: every 28.9 days
  • Top authors: ioannup (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active / 4,804 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Check Conflicts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0260.90 ▲1.89
Dashboard /wp-admin3.43 ▲0.0234.73 ▼2.74
Posts /wp-admin/edit.php3.66 ▲0.0238.28 ▼7.51
Add New Post /wp-admin/post-new.php6.90 ▼0.0792.34 ▼1,287.15
Media Library /wp-admin/upload.php3.31 ▲0.0223.41 ▼0.41

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Check Conflicts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,798 ▲4415.88 ▲0.116.63 ▲0.742.18 ▼0.65
Dashboard /wp-admin2,907 ▲566.08 ▼0.12121.10 ▼16.27212.47 ▲45.43
Posts /wp-admin/edit.php2,703 ▲93.24 ▲0.0162.43 ▼3.53140.34 ▼2.64
Add New Post /wp-admin/post-new.php1,671 ▲1016.53 ▼0.11451.70 ▼0.04156.20 ▼14.01
Media Library /wp-admin/upload.php1,713 ▲215.56 ▲0.05182.43 ▲28.63214.58 ▼3.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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 everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× 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/check-conflicts/mu-plugins/mu-check-conflicts.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/check-conflicts/views/move_to_mu.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/check-conflicts/check-conflicts.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

check-conflicts/check-conflicts.php 92% from 13 tests

The entry point to "Check Conflicts" version 1.1.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 329 characters long)

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 plugin440 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP310456440

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.37
Average class complexity33.50
▷ Minimum class complexity8.00
▷ Maximum class complexity59.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods32100.00%
▷ Public methods1546.88%
▷ Protected methods00.00%
▷ Private methods1753.12%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin