100% glavpunkt

Code Review | Glavpunkt

WordPress plugin Glavpunkt scored 100% from 54 tests.

About plugin

  • Plugin page: glavpunkt
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 5.8.1
  • First release: Oct 6, 2018
  • Latest release: May 31, 2019
  • Number of updates: 9
  • Update frequency: every 26.3 days
  • Top authors: mrsergeusz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 633 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼158.41ms] Passed 4 tests

This is a short check of server-side resources used by Glavpunkt
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0034.69 ▲1.65
Dashboard /wp-admin3.06 ▲0.0045.92 ▼1.81
Posts /wp-admin/edit.php3.11 ▲0.0040.53 ▲1.22
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.16 ▼627.65
Media Library /wp-admin/upload.php3.00 ▼0.0133.24 ▼5.39

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Glavpunkt
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.86 ▲0.2210.89 ▼1.2346.79 ▲0.18
Dashboard /wp-admin2,967 ▲305.90 ▼0.13143.91 ▲1.58103.85 ▲6.16
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0064.84 ▼5.5990.74 ▲1.78
Add New Post /wp-admin/post-new.php1,683 ▲118.66 ▼0.20410.43 ▼4.68108.67 ▲2.63
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.02144.63 ▼11.47109.10 ▼2.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

glavpunkt/glavpunkt.php Passed 13 tests

"Glavpunkt" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Delivery by courier, post and selecting pickup points

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected579 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP466152451
PO File1394699
JavaScript12429

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods436.36%
▷ Protected methods00.00%
▷ Private methods763.64%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin