83% sullivan-compatibility

Code Review | Sullivan Compatibility Plugin

WordPress plugin Sullivan Compatibility Plugin scored 83% from 54 tests.

About plugin

  • Plugin page: sullivan-compatib...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 5.8.1
  • First release: Mar 26, 2018
  • Latest release: Mar 26, 2018
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: Anlino (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 3,079 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼141.20ms] Passed 4 tests

A check of server-side resources used by Sullivan Compatibility Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0744.26 ▲7.89
Dashboard /wp-admin3.13 ▲0.0743.38 ▼0.68
Posts /wp-admin/edit.php3.18 ▲0.0747.89 ▲1.23
Add New Post /wp-admin/post-new.php5.58 ▲0.1589.05 ▼565.37
Media Library /wp-admin/upload.php3.07 ▲0.0734.19 ▲0.04
All slides /wp-admin/edit.php?post_type=sullivan_slideshow3.1133.74
Slideshow locations /wp-admin/edit-tags.php?taxonomy=sullivan_slideshow_location&post_type=sullivan_slideshow3.0733.40
Create new /wp-admin/post-new.php?post_type=sullivan_slideshow3.1449.96

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
sullivan_slideshow_location_children

Browser metrics Passed 4 tests

Sullivan Compatibility Plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12716.25 ▲0.6311.29 ▲0.6048.19 ▲2.66
Dashboard /wp-admin3,010 ▲765.94 ▼0.07141.05 ▼24.48108.73 ▼0.40
Posts /wp-admin/edit.php2,779 ▲402.73 ▼0.1266.23 ▲1.8383.28 ▼8.43
Add New Post /wp-admin/post-new.php1,524 ▼15918.88 ▲0.17421.39 ▲4.90106.77 ▼1.46
Media Library /wp-admin/upload.php1,850 ▲435.04 ▲0.03159.14 ▲3.13108.85 ▼5.07
All slides /wp-admin/edit.php?post_type=sullivan_slideshow1,4482.6361.7070.38
Slideshow locations /wp-admin/edit-tags.php?taxonomy=sullivan_slideshow_location&post_type=sullivan_slideshow1,4442.3558.3369.64
Create new /wp-admin/post-new.php?post_type=sullivan_slideshow2,4074.57109.5086.94

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
  • Zombie WordPress options were found after uninstall: 1 option
    • sullivan_slideshow_location_children

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sullivan-compatibility/register-taxonomies.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sullivan-compatibility/register-posttypes.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sullivan-compatibility/sullivan-compat.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sullivan-compatibility/slideshow-meta.php:16

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 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
3 plugin tags: compat, sullivan, compatibility

sullivan-compatibility/sullivan-compat.php 77% from 13 tests

"Sullivan Compatibility Plugin" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sullivan-compatibility.php" instead of "sullivan-compat.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: Please don't use more than 140 characters for the plugin description (currently 227 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin199 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP47054199

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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