84% enqueueror

Code Review | Enqueueror

WordPress plugin Enqueueror scored 84% from 54 tests.

About plugin

  • Plugin page: enqueueror
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 9, 2022
  • Latest release: Jul 25, 2023
  • Number of updates: 15
  • Update frequency: every 38.6 days
  • Top authors: panastasiadist (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,007 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.20MB] [CPU: ▼0.46ms] Passed 4 tests

This is a short check of server-side resources used by Enqueueror
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3139.27 ▼3.36
Dashboard /wp-admin3.54 ▲0.2460.50 ▲11.48
Posts /wp-admin/edit.php3.59 ▲0.2347.64 ▼3.10
Add New Post /wp-admin/post-new.php6.06 ▲0.1794.05 ▼1.40
Media Library /wp-admin/upload.php3.40 ▲0.1739.99 ▲6.01

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

Filesystem and database footprint
Please fix the following
  • Illegal file modification detected: 1 file (1.05KB) outside of "wp-content/plugins/enqueueror/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Enqueueror
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.511.78 ▼0.1241.43 ▼1.19
Dashboard /wp-admin2,206 ▲294.89 ▼1.15104.69 ▼2.3037.91 ▼1.58
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0137.22 ▲2.2732.02 ▼5.86
Add New Post /wp-admin/post-new.php1,525 ▲323.16 ▲0.14611.56 ▼3.4655.69 ▼15.45
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0398.40 ▼14.7842.53 ▼1.92

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Descriptor' not found in wp-content/plugins/enqueueror/src/Descriptors/Term.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Descriptor' not found in wp-content/plugins/enqueueror/src/Descriptors/NotFound.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Descriptor' not found in wp-content/plugins/enqueueror/src/Descriptors/Generic.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Processor' not found in wp-content/plugins/enqueueror/src/Processors/CSS/Raw.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Descriptor' not found in wp-content/plugins/enqueueror/src/Descriptors/Search.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Processor' not found in wp-content/plugins/enqueueror/src/Processors/JS/Raw.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Processor' not found in wp-content/plugins/enqueueror/src/Processors/CSS/Php.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Processor' not found in wp-content/plugins/enqueueror/src/Processors/JS/Php.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Flag' not found in wp-content/plugins/enqueueror/src/Flags/Source.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'panastasiadist\\Enqueueror\\Base\\Descriptor' not found in wp-content/plugins/enqueueror/src/Descriptors/Archive.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
9 plugin tags: css, script, javascript, development, stylesheet...

enqueueror/enqueueror.php Passed 13 tests

"Enqueueror" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
38 characters long description:
Supercharged WordPress CSS & JS Coding

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 plugin1,269 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP313678481,269

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.69
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes26
▷ Abstract classes27.69%
▷ Concrete classes2492.31%
▷ Final classes00.00%
Methods93
▷ Static methods4043.01%
▷ Public methods7580.65%
▷ Protected methods44.30%
▷ Private methods1415.05%
Functions11
▷ Named functions00.00%
▷ Anonymous functions11100.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected