68% sully

Code Review | SULly

WordPress plugin SULly scored68%from 54 tests.

About plugin

  • Plugin page: sully
  • Plugin version: 4.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 7, 2013
  • Latest release: Apr 17, 2023
  • Number of updates: 117
  • Update frequency: every 29.5 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,968 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.43ms] Passed 4 tests

This is a short check of server-side resources used by SULly
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.70 ▼6.81
Dashboard /wp-admin3.32 ▼0.0253.19 ▼12.27
Posts /wp-admin/edit.php3.43 ▲0.0848.67 ▼2.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.57 ▼16.31
Media Library /wp-admin/upload.php3.24 ▲0.0141.38 ▲7.82
SULly /wp-admin/index.php?page=SULlyDashboard3.2934.93

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 9 new options
New tables
wp_SULly
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
SULly
widget_recent-posts
can_compress_scripts
SULly_System_Settings
SULly_DBVersion
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SULly
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲13214.76 ▲0.591.94 ▲0.0242.38 ▼4.59
Dashboard /wp-admin2,284 ▲814.82 ▼1.03112.27 ▲6.8344.67 ▲0.52
Posts /wp-admin/edit.php2,108 ▲111.99 ▼0.0636.44 ▼1.3840.34 ▲3.10
Add New Post /wp-admin/post-new.php1,555 ▲2423.53 ▲0.43679.57 ▼1.7758.44 ▼0.94
Media Library /wp-admin/upload.php1,408 ▲114.21 ▼0.02100.01 ▼3.6744.57 ▲1.24
SULly /wp-admin/index.php?page=SULlyDashboard9022.0225.8325.96
SULly /wp-admin/sully.php260.440.0813.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_SULly
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • SULly
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • SULly_System_Settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SULlyUpdateFails() in wp-content/plugins/sully/includes/widget.dashboard.php:5
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/sully/includes/page.dashboard.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/sully/includes/page.settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SULlyUpdateFails() in wp-content/plugins/sully/includes/page.dashboard.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/sully/ToolStack-WP-Utilities.class.php:33

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/sully.php
    • > Network (severe)
    wp-admin/sully.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: admin updates log

sully/sully.php 92% from 13 tests

The principal PHP file in "SULly" v. 4.2.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 215 characters long)

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,391 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP63763001,095
CSS21725296

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity60.00
▷ Minimum class complexity60.00
▷ Maximum class complexity60.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2696.30%
▷ Protected methods00.00%
▷ Private methods13.70%
Functions17
▷ Named functions17100.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
1 PNG file occupies 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo-250.png157.05KB57.13KB▼ 63.62%