78% themeregion-companion

Code Review | ThemeRegion Companion

WordPress plugin ThemeRegion Companion scored 78% from 54 tests.

About plugin

  • Plugin page: themeregion-compa...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: Oct 23, 2019
  • Number of updates: 24
  • Update frequency: every 13.4 days
  • Top authors: themeregion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,031 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.84MB] [CPU: ▲2.06ms] Passed 4 tests

This is a short check of server-side resources used by ThemeRegion Companion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.31 ▲0.8547.19 ▲7.14
Dashboard /wp-admin4.15 ▲0.8555.06 ▲7.18
Posts /wp-admin/edit.php4.20 ▲0.8459.34 ▲9.61
Add New Post /wp-admin/post-new.php6.76 ▲0.8789.73 ▼15.68
Media Library /wp-admin/upload.php4.05 ▲0.8243.82 ▲10.37
Tags /wp-admin/edit-tags.php?taxonomy=folio_tag&post_type=folio4.0742.79
All Items /wp-admin/edit.php?post_type=folio4.1254.80
Add New /wp-admin/post-new.php?post_type=folio4.1859.74
Category /wp-admin/edit-tags.php?taxonomy=folio_category&post_type=folio4.0744.86

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 123 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_trc_recent_posts_widget
widget_trcsocial_widget
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_trcimagewithtitle_widget
widget_trc_mailchimp

Browser metrics Passed 4 tests

This is an overview of browser requirements for ThemeRegion Companion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,131 ▲39615.93 ▲1.565.67 ▲3.7044.40 ▲1.43
Dashboard /wp-admin2,451 ▲2636.94 ▲2.05141.75 ▲29.3139.87 ▼6.85
Posts /wp-admin/edit.php2,360 ▲2713.44 ▲1.3960.82 ▲14.7937.14 ▲0.68
Add New Post /wp-admin/post-new.php1,615 ▲8223.25 ▲0.22652.23 ▼24.5132.77 ▼25.15
Media Library /wp-admin/upload.php1,499 ▲1144.68 ▲0.5784.51 ▼32.3043.48 ▼2.55
Tags /wp-admin/edit-tags.php?taxonomy=folio_tag&post_type=folio1,5363.5646.9027.42
All Items /wp-admin/edit.php?post_type=folio1,3463.4247.7228.34
Add New /wp-admin/post-new.php?post_type=folio2,4578.21173.8267.00
Category /wp-admin/edit-tags.php?taxonomy=folio_category&post_type=folio1,5373.6645.2429.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 10 options
    • can_compress_scripts
    • widget_trc_mailchimp
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_trcsocial_widget
    • widget_trc_recent_posts_widget
    • widget_trcimagewithtitle_widget
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/themeregion-companion/admin/partials/themeregion-companion-admin-display.php
    • > /wp-content/plugins/themeregion-companion/public/partials/themeregion-companion-public-display.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themeregion-companion/public/partials/inc/widgets/tr.social.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themeregion-companion/public/partials/inc/widgets/tr.image.title.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themeregion-companion/public/partials/inc/widgets/tr.recent.posts.widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themeregion-companion/admin/partials/post-types.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themeregion-companion/public/partials/inc/tr.postlike.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themeregion-companion/public/partials/inc/widgets/tr.mailchimp.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themeregion-companion/public/partials/tr.postlike.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === themeregion-companion === )
The official readme.txt might help

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

The main file in "ThemeRegion Companion" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
This plugin comes with all the core libraries of themeregion themes.

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
Good job! No executable or dangerous file extensions detected17,918 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code
PHP952,6331,76710,513
CSS62694423,759
JavaScript71,1083743,501
PO File16371143
SVG2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity18.42
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity5.42
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes64
▷ Abstract classes23.12%
▷ Concrete classes6296.88%
▷ Final classes00.00%
Methods252
▷ Static methods3614.29%
▷ Public methods24697.62%
▷ Protected methods10.40%
▷ Private methods51.98%
Functions60
▷ Named functions5998.33%
▷ Anonymous functions11.67%
Constants4
▷ Global constants4100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/partials/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%