84% quick-analytics

Code Review | Quick Analytics

WordPress plugin Quick Analytics scored84%from 54 tests.

About plugin

  • Plugin page: quick-analytics
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 29, 2018
  • Latest release: Sep 29, 2018
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: thibaultcrouzet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /600 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.06MB] [CPU: ▼0.98ms] Passed 4 tests

Analyzing server-side resources used by Quick Analytics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.12 ▲0.30
Dashboard /wp-admin3.37 ▲0.0650.84 ▼3.03
Posts /wp-admin/edit.php3.42 ▲0.0646.71 ▲3.87
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.46 ▼1.57
Media Library /wp-admin/upload.php3.29 ▲0.0634.04 ▲0.40
Quick Analytics /wp-admin/options-general.php?page=quick-analytics3.3230.58

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Quick Analytics: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.31 ▼0.961.72 ▼0.3341.07 ▼4.16
Dashboard /wp-admin2,213 ▲224.84 ▼0.06105.42 ▼14.1739.41 ▼7.97
Posts /wp-admin/edit.php2,093 ▲71.99 ▼0.0536.05 ▼2.6833.46 ▼2.32
Add New Post /wp-admin/post-new.php1,545 ▲2618.63 ▼4.62604.85 ▼63.5550.24 ▼4.22
Media Library /wp-admin/upload.php1,395 ▲44.23 ▲0.03100.96 ▲0.9643.60 ▼3.36
Quick Analytics /wp-admin/options-general.php?page=quick-analytics1,3241.7025.6131.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/quick-analytics/includes/admin/templates/options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #1 is missing in quick-analytics/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

quick-analytics/quick-analytics.php Passed 13 tests

The entry point to "Quick Analytics" version 1.0.0 is a PHP file that has certain tags in its header comment area
80 characters long description:
A simple plugin that helps you to integrate quickly your analytics tracking IDs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin864 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5357133720
PO File15878144

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity36.50
▷ Minimum class complexity27.00
▷ Maximum class complexity46.00
Average method complexity8.10
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin