72% hiilite-creative-group-branding

Code Review | Hiilite Creative Group Branding

WordPress plugin Hiilite Creative Group Branding scored72%from 54 tests.

About plugin

  • Plugin page: hiilite-creative-...
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.1
  • WordPress version: 6.3.1
  • First release: May 4, 2015
  • Latest release: Dec 9, 2015
  • Number of updates: 16
  • Update frequency: every 13.8 days
  • Top authors: pvigilante (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,043 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.40MB] [CPU: ▼5.27ms] Passed 4 tests

An overview of server-side resources used by Hiilite Creative Group Branding
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3143.46 ▼0.77
Dashboard /wp-admin3.79 ▲0.4454.15 ▼14.16
Posts /wp-admin/edit.php3.84 ▲0.4854.70 ▲1.20
Add New Post /wp-admin/post-new.php6.31 ▲0.4294.59 ▼7.33
Media Library /wp-admin/upload.php3.65 ▲0.4242.19 ▲7.03
Install Hiilite Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.8741.09
Hiilite Admin /wp-admin/options-general.php?page=hiilite_options3.6145.62

Server storage [IO: ▲22.41MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 213 new files
Database: no new tables, 7 new options
New WordPress options
hiilite_settings
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Hiilite Creative Group Branding
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,737 ▼2414.33 ▼0.035.58 ▲3.7044.75 ▼0.22
Dashboard /wp-admin2,108 ▼696.48 ▲0.8592.86 ▲1.6375.53 ▲32.08
Posts /wp-admin/edit.php2,222 ▲1222.70 ▲0.6742.00 ▲5.3335.40 ▲0.64
Add New Post /wp-admin/post-new.php1,479 ▼4717.40 ▼6.11653.42 ▼70.6640.09 ▼20.53
Media Library /wp-admin/upload.php1,510 ▲1105.05 ▲0.84103.04 ▲0.6976.74 ▲28.44
Install Hiilite Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,3762.5733.4829.90
Hiilite Admin /wp-admin/options-general.php?page=hiilite_options1,0872.7443.7146.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • hiilite_settings
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/hiilite-creative-group-branding/index.php
    • > /wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/examples/index.php
    • > /wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/examples/service-account.php
    • > /wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/examples/simple-query.php
    • > /wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/examples/user-example.php
    • > /wp-content/plugins/hiilite-creative-group-branding/admin.inc.php
    • > /wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/examples/batch.php
    • > /wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/examples/simplefileupload.php
    • > /wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/examples/fileupload.php
    • > /wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/examples/multi-api.php
  • 113× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'BaseTest' not found in wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/tests/youtube/YouTubeTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/tests/general/ServiceTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/src/Google/Service/Reseller.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/hiilite-creative-group-branding/hiilite_seo_report.php:665
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/src/Google/Service/Bigquery.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/src/Google/Service/Webmasters.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/src/Google/Service/Classroom.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/tests/BaseTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/src/Google/Service/Playmoviespartner.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/hiilite-creative-group-branding/google-api-php-client-master/src/Google/Service/AdExchangeSeller.php:32

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hiilite_options
    • > Network (severe)
    https://hiilite.zendesk.com/embeddable/config - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: backend, admin, hiilite

hiilite-creative-group-branding/index.php 92% from 13 tests

The entry point to "Hiilite Creative Group Branding" version 1.0.10 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hiilite-creative-group-branding.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected173,719 lines of code in 188 files:
LanguageFilesBlank linesComment linesLines of code
PHP17111,84934,332172,768
HTML2320321
CSS34745296
XML22841122
Markdown350081
SVG10155
JSON40040
YAML18230
INI1016

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity1.30
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity1.04
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes3,027
▷ Abstract classes60.20%
▷ Concrete classes3,02199.80%
▷ Final classes00.00%
Methods23,903
▷ Static methods150.06%
▷ Public methods23,80299.58%
▷ Protected methods370.15%
▷ Private methods640.27%
Functions46
▷ Named functions3984.78%
▷ Anonymous functions715.22%
Constants261
▷ Global constants20.77%
▷ Class constants25999.23%
▷ Public constants259100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/hiilite-logo-lettermark.png4.79KB3.31KB▼ 30.85%
assets/banner-772x250.png25.71KB5.75KB▼ 77.62%
images/hiilite-logo-combomark.png12.53KB7.81KB▼ 37.69%