63% etoile-theme-companion

Code Review | Etoile Theme Companion

WordPress plugin Etoile Theme Companion scored63%from 54 tests.

About plugin

  • Plugin page: etoile-theme-comp...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.9
  • WordPress version: 6.3.1
  • First release: May 24, 2017
  • Latest release: Nov 13, 2017
  • Number of updates: 8
  • Update frequency: every 21.6 days
  • Top authors: EtoileWebDesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,996 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.56MB] [CPU: ▼45.62ms] Passed 4 tests

A check of server-side resources used by Etoile Theme Companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1540.28 ▲4.73
Dashboard /wp-admin2.40 ▼0.9513.03 ▼47.39
Posts /wp-admin/edit.php2.40 ▼0.9611.80 ▼34.67
Add New Post /wp-admin/post-new.php2.40 ▼3.4912.21 ▼75.09
Media Library /wp-admin/upload.php2.40 ▼0.8311.31 ▼25.33
Jump Boxes /wp-admin/edit.php?post_type=upcp_theme_jumpboxes2.4012.38
Testimonials /wp-admin/edit.php?post_type=upcp_theme_testi2.4012.64
Featured Products /wp-admin/admin.php?page=EWD-UPCP-Theme-options&DisplayPage=Homepage2.4012.37

Server storage [IO: ▲0.05MB] [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: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_upcp_theme_testimonials_widget
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Etoile Theme Companion
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.79 ▼0.5610.00 ▲8.3446.53 ▲5.29
Dashboard /wp-admin2,231 ▲505.49 ▼0.1983.46 ▼18.1740.88 ▲1.39
Posts /wp-admin/edit.php2,140 ▲402.03 ▲0.0335.36 ▼0.9632.59 ▼2.46
Add New Post /wp-admin/post-new.php1,557 ▲2623.21 ▲0.17677.51 ▲12.4361.70 ▲10.26
Media Library /wp-admin/upload.php1,439 ▲364.22 ▲0.04110.27 ▲10.3348.35 ▲1.96
Jump Boxes /wp-admin/edit.php?post_type=upcp_theme_jumpboxes1,1061.9629.3829.68
Testimonials /wp-admin/edit.php?post_type=upcp_theme_testi1,1091.9630.8130.28
Featured Products /wp-admin/admin.php?page=EWD-UPCP-Theme-options&DisplayPage=Homepage1,1893.4540.5630.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/etoile-theme-companion/etoile-theme-companion.php+64
    Undefined index: Action
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_upcp_theme_testimonials_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=EWD-UPCP-Theme-options&DisplayPage=Homepage
    • > Notice in wp-content/plugins/etoile-theme-companion/etoile-theme-companion.php+64
    Undefined index: Action
    • > GET request to /wp-admin/admin.php?page=EWD-UPCP-Theme-options&DisplayPage=Homepage
    • > Notice in wp-content/plugins/etoile-theme-companion/etoile-theme-companion.php+126
    Undefined variable: Display_Tab

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/etoile-theme-companion/etoile-theme-companion.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=EWD-UPCP-Theme-options&DisplayPage=Homepage
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).spectrum is not a function" "TypeError: jQuery(...).spectrum is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/etoile-theme-companion/js/Admin.js?ver=6.3.1:70:37)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=EWD-UPCP-Theme-options&DisplayPage=Homepage
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).spectrum is not a function

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: ultimate showcase, etoile web design

etoile-theme-companion/etoile-theme-companion.php Passed 13 tests

The main file in "Etoile Theme Companion" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
A plugin that adds functionality to the themes by Etoile Web Design.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,102 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP19261521
CSS13216400
JavaScript34115181

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.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
There were not PNG files found in your plugin