84% puzzler

Code Review | PUZZLER is JS + CSS combine

WordPress plugin PUZZLER is JS + CSS combine scored84%from 54 tests.

About plugin

  • Plugin page: puzzler
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.4
  • WordPress version: 6.3.1
  • First release: Dec 23, 2015
  • Latest release: Dec 24, 2015
  • Number of updates: 13
  • Update frequency: every 0.3 days
  • Top authors: igor.antoshkin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /3,441 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.55ms] Passed 4 tests

This is a short check of server-side resources used by PUZZLER is JS + CSS combine
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0826.76 ▼8.92
Dashboard /wp-admin3.40 ▲0.1048.48 ▲2.84
Posts /wp-admin/edit.php3.52 ▲0.1646.69 ▼1.43
Add New Post /wp-admin/post-new.php5.98 ▲0.1083.65 ▼6.11
Media Library /wp-admin/upload.php3.33 ▲0.1036.22 ▲2.26

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • There were 3 files (159.05KB) illegally modified outside of "wp-content/plugins/puzzler/" and "wp-content/uploads/"
    • (new file) wp-content/cache/all-footer.js
    • (new file) wp-content/cache/all-header.css
    • (new file) wp-content/cache/all-header.js
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
puzzler_settings
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

PUZZLER is JS + CSS combine: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.31 ▼1.076.26 ▲4.5352.71 ▲11.31
Dashboard /wp-admin2,222 ▲314.89 ▼0.93101.54 ▲4.1742.03 ▼2.55
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0535.78 ▼0.0333.97 ▲2.00
Add New Post /wp-admin/post-new.php1,541 ▲2723.32 ▲5.83674.20 ▼5.3651.78 ▼11.60
Media Library /wp-admin/upload.php1,407 ▲164.20 ▲0.04103.51 ▲3.9046.65 ▲2.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • puzzler_settings
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Scripts' not found in wp-content/plugins/puzzler/classes-puzzler.php:276
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Scripts' not found in wp-content/plugins/puzzler/classes-puzzler.php:276

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (26 tag instead of maximum 10)
You can take inspiration from this readme.txt

puzzler/puzzler.php Passed 13 tests

"PUZZLER is JS + CSS combine" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
Smart simple auto aggregator CSS and JS scripts for more fast load pages of site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin506 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2246201506

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity32.33
▷ Minimum class complexity13.00
▷ Maximum class complexity51.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods520.83%
▷ Protected methods1666.67%
▷ Private methods312.50%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin