90% lessify-wp

Code Review | Lessify Wordpress

WordPress plugin Lessify Wordpress scored90%from 54 tests.

About plugin

  • Plugin page: lessify-wp
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2013
  • Latest release: Sep 4, 2023
  • Number of updates: 23
  • Update frequency: every 156.0 days
  • Top authors: sagarseth9 (56.52%)Magnigenie (47.83%)

Code review

54 tests

User reviews

5 reviews

Install metrics

700+ active /4,867 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 gracefully, with no errors

Server metrics [RAM: ▲0.53MB] [CPU: ▼5.89ms] Passed 4 tests

An overview of server-side resources used by Lessify Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5542.65 ▼0.82
Dashboard /wp-admin3.85 ▲0.5550.37 ▼0.93
Posts /wp-admin/edit.php3.90 ▲0.5551.34 ▲3.19
Add New Post /wp-admin/post-new.php6.37 ▲0.4988.24 ▼23.08
Media Library /wp-admin/upload.php3.77 ▲0.5539.68 ▲1.26

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Lessify Wordpress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.141.56 ▼0.4741.07 ▼6.94
Dashboard /wp-admin2,203 ▲155.83 ▲0.9797.29 ▼21.2344.50 ▲1.22
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0139.72 ▲4.6537.13 ▼2.28
Add New Post /wp-admin/post-new.php1,528 ▼023.32 ▲5.08678.70 ▲62.0054.42 ▼0.11
Media Library /wp-admin/upload.php1,385 ▼34.15 ▼0.1095.64 ▼2.7946.19 ▲2.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: wp less, less wp, lesscss wordpress, lessify wordpress, less...

lessify-wp/lessify-wp.php 92% from 13 tests

"Lessify Wordpress" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,794 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36613862,794

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity115.50
▷ Minimum class complexity1.00
▷ Maximum class complexity352.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods178
▷ Static methods52.81%
▷ Public methods3720.79%
▷ Protected methods14179.21%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin