94% simpleshift-companion

Code Review | SimpleShift Companion

WordPress plugin SimpleShift Companion scored 94% from 54 tests.

About plugin

  • Plugin page: simpleshift-compa...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 5.8.1
  • First release: Nov 10, 2016
  • Latest release: Nov 19, 2016
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: ThemeShift (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 7,456 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by SimpleShift Companion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1243.94 ▲18.39
Dashboard /wp-admin3.07 ▲0.0152.15 ▲6.45
Posts /wp-admin/edit.php3.11 ▲0.0147.23 ▼5.59
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.70 ▼599.41
Media Library /wp-admin/upload.php3.01 ▲0.0136.69 ▼1.23

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for SimpleShift Companion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,721 ▲14915.86 ▲0.4110.30 ▼0.2151.22 ▼3.51
Dashboard /wp-admin2,991 ▲575.85 ▼0.10145.12 ▼24.39116.09 ▼5.79
Posts /wp-admin/edit.php2,760 ▲212.70 ▲0.0169.32 ▼4.7488.23 ▼12.88
Add New Post /wp-admin/post-new.php1,696 ▲1318.81 ▲0.02410.50 ▲4.80121.99 ▲7.31
Media Library /wp-admin/upload.php1,826 ▲195.02 ▼0.00165.68 ▲3.00117.49 ▼12.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_sidebar() in wp-content/plugins/simpleshift-companion/inc/widgets.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: No valid plugin tags found
The official readme.txt is a good inspiration

simpleshift-companion/simpleshift-companion.php Passed 13 tests

The primary PHP file in "SimpleShift Companion" version 1.0.0 is used by WordPress to initiate all plugin functionality
67 characters long description:
Add many additional features and settings to the SimpleShift theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin905 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP313778905

PHP code Passed 2 tests

This is a short overview 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.23
Average class complexity15.25
▷ Minimum class complexity10.00
▷ Maximum class complexity28.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected