84% aaaaaaah-lek-lek

Code Review | Lek Lek

WordPress plugin Lek Lek scored84%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: 6.3.1
  • 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 /1,132 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Lek Lek
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.35 ▲4.15
Dashboard /wp-admin3.31 ▲0.0046.59 ▼2.47
Posts /wp-admin/edit.php3.36 ▲0.0042.61 ▼2.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.87 ▼4.98
Media Library /wp-admin/upload.php3.23 ▲0.0035.63 ▲0.18

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lek Lek
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.32 ▲0.041.71 ▲0.1443.41 ▲2.56
Dashboard /wp-admin2,197 ▲205.60 ▼0.0585.06 ▼7.7643.57 ▼0.56
Posts /wp-admin/edit.php2,105 ▲81.96 ▼0.1834.98 ▼0.8434.72 ▼1.75
Add New Post /wp-admin/post-new.php1,599 ▲6821.74 ▼1.48639.43 ▲36.8438.85 ▼11.81
Media Library /wp-admin/upload.php1,405 ▲54.12 ▼0.11108.53 ▲6.2249.25 ▲4.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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
Everything seems fine, but this is not an exhaustive test

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: frases, leklek

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

The primary PHP file in "Lek Lek" version 1.0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aaaaaaah-lek-lek.php" instead of "leklek.php")

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
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

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
No PNG images were found in this plugin