84% less-theme-support

Code Review | Less Theme Support

WordPress plugin Less Theme Support scored84%from 54 tests.

About plugin

  • Plugin page: less-theme-support
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9
  • WordPress version: 6.3.1
  • First release: Apr 20, 2014
  • Latest release: Apr 20, 2014
  • Number of updates: 6
  • Update frequency: every 2.2 days
  • Top authors: Kopepasah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,818 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.01MB] [CPU: ▼7.57ms] Passed 4 tests

An overview of server-side resources used by Less Theme Support
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.46 ▼5.86
Dashboard /wp-admin3.32 ▼0.0250.22 ▼12.94
Posts /wp-admin/edit.php3.38 ▲0.0248.36 ▼0.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.34 ▼10.32
Media Library /wp-admin/upload.php3.25 ▲0.0134.53 ▼1.17

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Less Theme Support: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.23 ▼1.391.66 ▼0.3641.34 ▼1.80
Dashboard /wp-admin2,206 ▲274.81 ▼1.06108.41 ▼8.7140.49 ▼10.44
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0239.72 ▲1.8637.11 ▲2.22
Add New Post /wp-admin/post-new.php1,543 ▲1017.99 ▼5.13639.03 ▲5.7863.92 ▲0.08
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.08106.93 ▲5.4149.13 ▲4.16

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/less-theme-support/less-theme-support.php:252

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: lessjs, lesscss, less, theme

less-theme-support/less-theme-support.php Passed 13 tests

The primary PHP file in "Less Theme Support" version 1.0.2 is used by WordPress to initiate all plugin functionality
66 characters long description:
Adds support for using Less in a theme, primarily for development.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin137 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13314574
Markdown121038
PO File11118
JavaScript33137

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin