94% omplag

Code Review | Complag

WordPress plugin Complag scored 94% from 54 tests.

About plugin

  • Plugin page: omplag
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.8
  • WordPress version: 5.8.1
  • First release: Oct 3, 2018
  • Latest release: Oct 23, 2018
  • Number of updates: 5
  • Update frequency: every 4.4 days
  • Top authors: andru1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 389 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Complag
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1534.49 ▲10.95
Dashboard /wp-admin3.09 ▲0.0455.90 ▲16.94
Posts /wp-admin/edit.php3.15 ▲0.0448.78 ▼0.31
Add New Post /wp-admin/post-new.php5.45 ▲0.0296.89 ▼563.07
Media Library /wp-admin/upload.php3.04 ▲0.0434.77 ▲0.95
Complag /wp-admin/options-general.php?page=complag-set3.0129.76

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
complag_option

Browser metrics Passed 4 tests

A check of browser resources used by Complag
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.29 ▲0.768.00 ▼0.9447.03 ▼2.39
Dashboard /wp-admin2,972 ▲415.92 ▼0.26146.24 ▼3.54117.83 ▼3.44
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0169.31 ▲4.1196.29 ▲6.54
Add New Post /wp-admin/post-new.php1,602 ▼8118.77 ▼0.00401.88 ▲0.61113.35 ▲0.75
Media Library /wp-admin/upload.php1,812 ▲675.02 ▲0.03155.24 ▼10.82121.92 ▼2.39
Complag /wp-admin/options-general.php?page=complag-set1,0482.0862.3376.86

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 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/omplag/complag.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Главная страница плагина) image not found
Please take inspiration from this readme.txt

omplag/complag.php 92% from 13 tests

The principal PHP file in "Complag" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("omplag.php" instead of "complag.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin148 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1612148

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected