84% qube-tools

Code Review | Qube Tools - Extend Theme Features & One Click Demo Importer Plugin for Qube Themes

WordPress plugin Qube Tools - Extend Theme Features & One Click Demo Importer Plugin for Qube Themes scored 84% from 54 tests.

About plugin

  • Plugin page: qube-tools
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Aug 22, 2021
  • Latest release: Aug 23, 2021
  • Number of updates: 4
  • Update frequency: every 4.5 days
  • Top authors: qubethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.85ms] Passed 4 tests

An overview of server-side resources used by Qube Tools - Extend Theme Features & One Click Demo Importer Plugin for Qube Themes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.81 ▼5.27
Dashboard /wp-admin3.36 ▲0.0644.42 ▼3.89
Posts /wp-admin/edit.php3.48 ▲0.1247.66 ▲2.50
Add New Post /wp-admin/post-new.php5.94 ▲0.0696.32 ▲2.77
Media Library /wp-admin/upload.php3.29 ▲0.0634.83 ▼0.73

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Qube Tools - Extend Theme Features & One Click Demo Importer Plugin for Qube Themes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.13 ▼1.451.71 ▼0.0740.31 ▲3.31
Dashboard /wp-admin2,206 ▲175.86 ▲0.94107.09 ▲0.3342.95 ▲1.63
Posts /wp-admin/edit.php2,086 ▼32.00 ▲0.0139.77 ▲5.0735.35 ▲0.18
Add New Post /wp-admin/post-new.php1,547 ▲1418.02 ▼5.13612.27 ▼61.6266.65 ▲10.78
Media Library /wp-admin/upload.php1,391 ▲94.17 ▼0.17105.12 ▼35.1343.36 ▼8.86

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 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/qube-tools/includes/functions/demo-data.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: demo import, tools

qube-tools/qube-tools.php Passed 13 tests

The entry point to "Qube Tools - Extend Theme Features & One Click Demo Importer Plugin for Qube Themes" version 1.0.3 is a PHP file that has certain tags in its header comment area
70 characters long description:
Extend Theme Features & One Click Demo Importer Plugin for Qube Themes

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
There were no executable files found in this plugin5,229 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP217235632,538
JavaScript23061871,465
CSS317911,226

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity31.07
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods91
▷ Static methods11.10%
▷ Public methods8391.21%
▷ Protected methods11.10%
▷ Private methods77.69%
Functions16
▷ Named functions1381.25%
▷ Anonymous functions318.75%
Constants13
▷ Global constants13100.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