94% aaaaaaah-lek-lek

Code Review | Lek Lek

WordPress plugin Lek Lek scored 94% from 54 tests.

About plugin

  • Plugin page: aaaaaaah-lek-lek
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 5.9.2
  • First release: Mar 12, 2013
  • Latest release: Sep 4, 2014
  • Number of updates: 9
  • Update frequency: every 67.1 days
  • Top authors: valeriosza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 943 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼293.01ms] Passed 4 tests

Server-side resources used by Lek Lek
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0156.98 ▲4.92
Dashboard /wp-admin3.41 ▲0.0031.50 ▼2.15
Posts /wp-admin/edit.php3.64 ▲0.0036.03 ▼0.52
Add New Post /wp-admin/post-new.php6.91 ▼0.0993.95 ▼1,168.99
Media Library /wp-admin/upload.php3.30 ▲0.0025.36 ▼0.37

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Lek Lek
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲1716.22 ▲0.605.65 ▼0.752.03 ▼0.53
Dashboard /wp-admin2,900 ▲396.18 ▼0.12113.16 ▼17.33153.01 ▼7.39
Posts /wp-admin/edit.php2,694 ▲63.24 ▼0.0162.88 ▼0.12140.62 ▼0.62
Add New Post /wp-admin/post-new.php1,714 ▼4619.79 ▼2.66413.53 ▼26.03167.89 ▲10.82
Media Library /wp-admin/upload.php1,709 ▲115.52 ▲0.00143.12 ▲1.44187.02 ▲9.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aaaaaaah-lek-lek/leklek.php:51

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: leklek, frases

aaaaaaah-lek-lek/leklek.php 92% from 13 tests

Analyzing the main PHP file in "Lek Lek" version 1.0.4
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("aaaaaaah-lek-lek.php" instead of "leklek.php")

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 detected43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191943

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin