83% open-lazy

Code Review | Open Lazy

WordPress plugin Open Lazy scored 83% from 54 tests.

About plugin

  • Plugin page: open-lazy
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Aug 15, 2019
  • Number of updates: 44
  • Update frequency: every 31.9 days
  • Top authors: playes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,231 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼7.16ms] Passed 4 tests

An overview of server-side resources used by Open Lazy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1740.04 ▲0.68
Dashboard /wp-admin3.48 ▲0.1743.56 ▼7.48
Posts /wp-admin/edit.php3.59 ▲0.2344.94 ▲0.93
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.45 ▼22.77
Media Library /wp-admin/upload.php3.40 ▲0.1734.15 ▲3.04
Open Lazy /wp-admin/options-general.php?page=open-lazy3.3735.86

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Open Lazy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.61 ▼0.701.70 ▼0.1643.62 ▼8.70
Dashboard /wp-admin2,204 ▲195.86 ▲0.8498.22 ▼7.2436.60 ▼3.58
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0139.99 ▲2.6534.81 ▲1.85
Add New Post /wp-admin/post-new.php1,545 ▲1218.21 ▼4.97585.40 ▼37.9870.46 ▲6.95
Media Library /wp-admin/upload.php1,395 ▲134.20 ▼0.0197.57 ▼40.6341.55 ▼10.64
Open Lazy /wp-admin/options-general.php?page=open-lazy1,1961.7027.8725.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 add_action() in wp-content/plugins/open-lazy/open-lazy.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (PACK), #2 (HTML and UI), #3 (UNLOAD and EXTENSION)
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
Please take inspiration from this readme.txt

open-lazy/open-lazy.php Passed 13 tests

The main PHP file in "Open Lazy" ver. 2.6 adds more information about the plugin and also serves as the entry point for this plugin
91 characters long description:
A handy toolkit can easily tweak up and speed up your wordpress, more simple, more natural.

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
Everything looks great! No dangerous files found in this plugin3,506 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS20132,017
SVG100640
PHP13113582
PO File2125142267

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions38
▷ Named functions3078.95%
▷ Anonymous functions821.05%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.90MB with 0.49MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png111.68KB44.70KB▼ 59.97%
screenshot-3.png271.61KB123.59KB▼ 54.50%
screenshot-1.png536.66KB273.93KB▼ 48.96%