79% gravitate-qa-tracker

Code Review | Gravitate QA Tracker

WordPress plugin Gravitate QA Tracker scored 79% from 54 tests.

About plugin

  • Plugin page: gravitate-qa-tracker
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.4
  • WordPress version: 5.9.2
  • First release: Aug 19, 2015
  • Latest release: Nov 25, 2015
  • Number of updates: 8
  • Update frequency: every 16.4 days
  • Top authors: Gravitate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 883 total downloads

Benchmarks

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.19MB] [CPU: ▼292.99ms] Passed 4 tests

Analyzing server-side resources used by Gravitate QA Tracker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.2856.22 ▲5.44
Dashboard /wp-admin3.63 ▲0.2232.91 ▼0.00
Posts /wp-admin/edit.php3.85 ▲0.2137.20 ▼0.49
Add New Post /wp-admin/post-new.php7.09 ▲0.1295.05 ▼1,170.33
Media Library /wp-admin/upload.php3.51 ▲0.2124.29 ▼1.15
Gravitate QA Tracker /wp-admin/options-general.php?page=gravitate_qa_tracker3.4722.42

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 1 new option
New WordPress options
gravitate_qa_tracker_settings

Browser metrics Passed 4 tests

Checking browser requirements for Gravitate QA Tracker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,754 ▲1215.94 ▲0.236.37 ▲0.212.29 ▲0.34
Dashboard /wp-admin2,879 ▲246.14 ▼0.05121.93 ▼14.24167.04 ▲6.57
Posts /wp-admin/edit.php2,696 ▲53.23 ▼0.0163.26 ▼0.16138.40 ▼6.07
Add New Post /wp-admin/post-new.php1,664 ▲316.65 ▲0.17397.56 ▼11.73160.51 ▼2.35
Media Library /wp-admin/upload.php1,703 ▲55.53 ▲0.07144.89 ▼2.00186.38 ▼9.12
Gravitate QA Tracker /wp-admin/options-general.php?page=gravitate_qa_tracker1,2022.4253.90113.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • gravitate_qa_tracker_settings

Smoke tests 50% 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 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/gravitate-qa-tracker/gravitate-qa-tracker.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Only variables should be passed by reference in wp-content/plugins/gravitate-qa-tracker/html2canvasproxy.php on line 61
    • > PHP Warning
      file_get_contents(): Filename cannot be empty in wp-content/plugins/gravitate-qa-tracker/html2canvasproxy.php on line 88
    • > PHP Notice
      Undefined index: url in wp-content/plugins/gravitate-qa-tracker/html2canvasproxy.php on line 76
    • > PHP Warning
      finfo_file(): Empty filename or path in wp-content/plugins/gravitate-qa-tracker/html2canvasproxy.php on line 67

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
3 plugin tags: qa tracker, issues, gravitate

gravitate-qa-tracker/gravitate-qa-tracker.php Passed 13 tests

This is the main PHP file of "Gravitate QA Tracker" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
65 characters long description:
This is Plugin allows you and your users to Track Website issues.

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
Good job! No executable or dangerous file extensions detected10,148 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript131,3141,2307,690
PHP2322531,967
CSS37621472
Markdown16019

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity206.00
▷ Minimum class complexity206.00
▷ Maximum class complexity206.00
Average method complexity10.76
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods21100.00%
▷ Public methods1466.67%
▷ Protected methods00.00%
▷ Private methods733.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
slickgrid/images/sort-asc.png0.10KB0.16KB0.00%
slickgrid/images/sort-desc.png0.10KB0.16KB0.00%