90% qualetics

Code Review | Qualetics

WordPress plugin Qualetics scored90%from 54 tests.

About plugin

  • Plugin page: qualetics
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Jun 16, 2022
  • Latest release: Aug 9, 2022
  • Number of updates: 10
  • Update frequency: every 5.4 days
  • Top authors: qualetics (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /642 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.86ms] Passed 4 tests

Server-side resources used by Qualetics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.24 ▼0.91
Dashboard /wp-admin3.33 ▲0.0348.90 ▼6.34
Posts /wp-admin/edit.php3.38 ▲0.0349.99 ▲1.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.60 ▼2.24
Media Library /wp-admin/upload.php3.26 ▲0.0337.15 ▼1.95

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
qualetics_settings
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Qualetics
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.25 ▼0.141.84 ▲0.3138.79 ▼4.69
Dashboard /wp-admin2,194 ▲145.55 ▼0.1188.89 ▼24.5472.68 ▲18.19
Posts /wp-admin/edit.php2,108 ▲81.96 ▲0.0235.60 ▼4.2336.92 ▲4.27
Add New Post /wp-admin/post-new.php1,550 ▲1922.64 ▼0.55649.77 ▼18.60180.32 ▲115.72
Media Library /wp-admin/upload.php1,408 ▲84.19 ▼0.0396.90 ▼8.3769.19 ▲19.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • qualetics_settings
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
6 plugin tags: website analytics, user behavior analytics, performance analytics, user engagement, client engagement analytics...

qualetics/qualetics.php 92% from 13 tests

The main PHP script in "Qualetics" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin2,388 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS212271,235
PHP4101751,081
JavaScript12072

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity74.50
▷ Minimum class complexity70.00
▷ Maximum class complexity79.00
Average method complexity8.35
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png0.64KB0.52KB▼ 18.29%
assets/images/QualeticsLogo.png115.92KB48.67KB▼ 58.01%