74% shopp-arrange

Code Review | CGD Arrange Terms

WordPress plugin CGD Arrange Terms scored 74% from 54 tests.

About plugin

  • Plugin page: shopp-arrange
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7.2
  • WordPress version: 6.3.1
  • First release: Nov 5, 2012
  • Latest release: Sep 15, 2016
  • Number of updates: 21
  • Update frequency: every 74.8 days
  • Top authors: clifgriffin (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active / 4,926 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.87MB] [CPU: ▼30.94ms] Passed 4 tests

An overview of server-side resources used by CGD Arrange Terms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6116.58 ▼35.56
Dashboard /wp-admin3.27 ▼0.0437.64 ▼13.41
Posts /wp-admin/edit.php3.21 ▼0.1533.39 ▼13.94
Add New Post /wp-admin/post-new.php3.19 ▼2.7034.03 ▼60.84
Media Library /wp-admin/upload.php3.29 ▲0.0538.75 ▼0.13
Arrange Terms /wp-admin/admin.php?page=cgd-arrange3.2634.42
Settings /wp-admin/admin.php?page=cgd-arrange-settings3.2533.24

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables
wp_cgd_term_order
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
cgd_arrange_terms_settings
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

CGD Arrange Terms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.23 ▼1.521.67 ▼0.5441.50 ▼8.73
Dashboard /wp-admin2,233 ▲544.91 ▼0.94113.62 ▼13.1842.11 ▼5.46
Posts /wp-admin/edit.php2,119 ▲332.03 ▼0.0239.80 ▲1.1634.86 ▲1.98
Add New Post /wp-admin/post-new.php1,560 ▲4123.40 ▲0.06604.50 ▼63.5552.55 ▲1.68
Media Library /wp-admin/upload.php1,415 ▲274.19 ▼0.0799.16 ▼2.4542.57 ▼6.52
Arrange Terms /wp-admin/admin.php?page=cgd-arrange8311.9329.3225.76
Settings /wp-admin/admin.php?page=cgd-arrange-settings8482.1928.1934.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_cgd_term_order
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • cgd_arrange_terms_settings
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function the_nonce() on null in wp-content/plugins/shopp-arrange/cgd-arrange-settings.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/shopp-arrange/inc/custom-walker.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_setting() on null in wp-content/plugins/shopp-arrange/cgd-arrange-admin.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/shopp-arrange/inc/custom-walker.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === shopp-arrange === )
You can look at the official readme.txt

shopp-arrange/cgd-arrange.php 92% from 13 tests

The main PHP script in "CGD Arrange Terms" version 1.1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shopp-arrange.php" instead of "cgd-arrange.php")

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
Everything looks great! No dangerous files found in this plugin278 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP570117249
CSS14026
JavaScript1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.33
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin