84% shapely-companion

Code Review | Shapely Companion

WordPress plugin Shapely Companion scored 84% from 54 tests.

About plugin

  • Plugin page: shapely-companion
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0
  • WordPress version: 6.3.1
  • First release: Sep 28, 2016
  • Latest release: Jun 10, 2022
  • Number of updates: 35
  • Update frequency: every 61.4 days
  • Top authors: colorlibplugins (54.29%)silkalns (22.86%)giucu91 (17.14%)machothemes (11.43%)raldea89 (5.71%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20,000+ active / 660,212 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.77ms] Passed 4 tests

Server-side resources used by Shapely Companion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.42 ▼2.32
Dashboard /wp-admin3.88 ▲0.5848.67 ▼0.76
Posts /wp-admin/edit.php3.39 ▲0.0344.83 ▼1.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.98 ▼14.37
Media Library /wp-admin/upload.php3.26 ▲0.0335.62 ▲1.95

Server storage [IO: ▲0.39MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Shapely Companion: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲20013.37 ▼1.235.39 ▲3.7040.15 ▼3.86
Dashboard /wp-admin2,344 ▲1564.85 ▼0.05101.25 ▼0.4140.76 ▼5.90
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0333.89 ▼3.3735.64 ▲2.18
Add New Post /wp-admin/post-new.php1,535 ▼023.30 ▲0.16605.47 ▼181.4150.18 ▼11.93
Media Library /wp-admin/upload.php1,402 ▲174.33 ▲0.1395.60 ▼7.2741.50 ▼4.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-home-clients.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-home-call-for-action.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-categories.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-social.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-home-contact.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-video.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-home-testimonials.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-page-title.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-recent-posts.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shapely-companion/inc/widgets/class-shapely-page-content.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === shapely-companion === )
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "Shapely Companion" version 1.2.7
58 characters long description:
Shapely Companion is a companion plugin for Shapely theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,040 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity16.67
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
▷ Static methods11.54%
▷ Public methods6498.46%
▷ Protected methods00.00%
▷ Private methods11.54%
▷ Named functions19100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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