84% redfox-companion

Code Review | Redfox Companion

WordPress plugin Redfox Companion scored84%from 54 tests.

About plugin

  • Plugin page: redfox-companion
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: Mar 29, 2019
  • Number of updates: 5
  • Update frequency: every 22.6 days
  • Top authors: redfoxthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,429 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.01MB] [CPU: ▼8.62ms] Passed 4 tests

Analyzing server-side resources used by Redfox Companion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.99 ▼3.39
Dashboard /wp-admin3.31 ▼0.0444.84 ▼14.45
Posts /wp-admin/edit.php3.36 ▲0.0050.02 ▼1.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.09 ▼15.51
Media Library /wp-admin/upload.php3.23 ▲0.0036.17 ▼0.54

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Redfox Companion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.571.61 ▼0.4543.83 ▲2.66
Dashboard /wp-admin2,206 ▲185.91 ▲1.08105.18 ▲1.7842.22 ▼4.37
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0039.59 ▼0.7234.91 ▼3.65
Add New Post /wp-admin/post-new.php1,546 ▲418.64 ▲0.16614.56 ▼17.0668.24 ▲9.02
Media Library /wp-admin/upload.php1,385 ▼64.18 ▲0.0095.84 ▼4.2845.62 ▲2.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/redfox-companion/include/hotel-paradise/customizer/sections/section-service.php:117
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/redfox-companion/redfox-companion.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redfox-companion/include/carpress/customizer/sections/section-slider.php:167
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/redfox-companion/include/hotel-paradise/customizer/sections/section-room.php:94
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/redfox-companion/include/hotel-paradise/customizer/sections/section-service.php:117
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/redfox-companion/include/hotel-paradise/customizer/sections/section-service.php:117
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/redfox-companion/include/carpress/functions/template-tags.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redfox-companion/include/carpress/customizer/sections/section-service.php:149
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/redfox-companion/include/hotel-paradise/home-page/section-service.php:137
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redfox-companion/include/carpress/customizer/sections/section-slider.php:167

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

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

The main file in "Redfox Companion" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Enhances redfox themes with additional functionality.

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 plugin1,018 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP17117231,018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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