73% search-for-fines-gidbb

Code Review | Штрафы ГИБДД

WordPress plugin Штрафы ГИБДД scored73%from 54 tests.

About plugin

  • Plugin page: search-for-fines-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.0
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: Dec 8, 2018
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: driverhelperhu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /593 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.93MB] [CPU: ▼37.19ms] Passed 4 tests

Analyzing server-side resources used by Штрафы ГИБДД
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.91 ▼4.66
Dashboard /wp-admin3.02 ▼0.3221.70 ▼39.92
Posts /wp-admin/edit.php3.02 ▼0.3322.23 ▼25.03
Add New Post /wp-admin/post-new.php3.02 ▼2.8722.11 ▼72.79
Media Library /wp-admin/upload.php3.02 ▼0.2124.43 ▼11.02

Server storage [IO: ▲0.42MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by Штрафы ГИБДД
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.28 ▼0.091.59 ▼0.1241.12 ▼3.24
Dashboard /wp-admin2,212 ▲355.56 ▼0.0088.96 ▲1.1378.66 ▲37.59
Posts /wp-admin/edit.php2,120 ▲201.98 ▼0.0436.89 ▲1.9833.67 ▼5.05
Add New Post /wp-admin/post-new.php1,558 ▲3223.01 ▼0.09674.19 ▲9.3852.14 ▲1.47
Media Library /wp-admin/upload.php1,417 ▲144.13 ▼0.0997.96 ▲3.5071.55 ▲28.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/search-for-fines-gidbb/driver-helper-fine-gibdd.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: gibdd, monetization, fine, widget

search-for-fines-gidbb/driver-helper-fine-gibdd.php 77% from 13 tests

The principal PHP file in "Штрафы ГИБДД" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 381 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("search-for-fines-gidbb.php" instead of "driver-helper-fine-gibdd.php")
  • Plugin Name: A shorter plugin name is better (currently 95 characters long instead of max. 70)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected190 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24930187
JavaScript12273
CSS1040

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for 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.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
8 PNG files occupy 0.41MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png55.12KB17.55KB▼ 68.16%
assets/screenshot-2.png108.34KB35.04KB▼ 67.66%
assets/screenshot-1.png108.25KB39.25KB▼ 63.74%
assets/icon-128x128.png0.90KB0.09KB▼ 89.71%
assets/screenshot-3.png72.88KB24.10KB▼ 66.93%