79% enqueue-me

Code Review | Enqueue Me

WordPress plugin Enqueue Me scored79%from 54 tests.

About plugin

  • Plugin page: enqueue-me
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Apr 26, 2017
  • Latest release: Jul 4, 2018
  • Number of updates: 9
  • Update frequency: every 48.2 days
  • Top authors: MagicStick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.26ms] Passed 4 tests

This is a short check of server-side resources used by Enqueue Me
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1149.98 ▲6.54
Dashboard /wp-admin3.42 ▲0.1252.22 ▼0.34
Posts /wp-admin/edit.php3.54 ▲0.1846.68 ▼2.80
Add New Post /wp-admin/post-new.php6.02 ▲0.1387.68 ▼6.11
Media Library /wp-admin/upload.php3.35 ▲0.1136.96 ▲0.20
Enqueue Me /wp-admin/options-general.php?page=enq_me_settings3.3434.31

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Enqueue Me: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.38 ▲0.102.14 ▲0.2446.31 ▲1.97
Dashboard /wp-admin2,204 ▲245.63 ▼0.0187.52 ▼3.9542.81 ▲0.89
Posts /wp-admin/edit.php2,106 ▲62.00 ▲0.0335.09 ▲0.2234.45 ▲0.13
Add New Post /wp-admin/post-new.php1,531 ▲522.91 ▼0.17702.13 ▼0.5957.92 ▲8.26
Media Library /wp-admin/upload.php1,406 ▲64.22 ▲0.03106.21 ▲0.9244.95 ▼0.76
Enqueue Me /wp-admin/options-general.php?page=enq_me_settings1,1162.5250.4634.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 6× 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/enqueue-me/inc/admin.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enqueue-me/inc/core.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enqueue-me/inc/fav-lists.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enqueue-me/inc/admin.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enqueue-me/inc/load-scripts.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enqueue-me/inc/import-export.php:27

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=enq_me_settings
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=enq_me_settings - Access to XMLHttpRequest at 'https://wpmaz.uk/enqueue-me/em-requests.php' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=enq_me_settings
    • > Network (severe)
    https://wpmaz.uk/enqueue-me/em-requests.php - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: package, gui, javascript, library, manage...

enqueue-me/enqueue-me.php Passed 13 tests

The entry point to "Enqueue Me" version 0.5 is a PHP file that has certain tags in its header comment area
73 characters long description:
Easily enqueue your favourite CSS and Javascipt libraries into your theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,339 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript634815587
PHP6290183523
CSS400187
Markdown118042

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions30
▷ Named functions30100.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
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/code.png0.28KB0.32KB0.00%
img/tick.png1.56KB0.67KB▼ 56.95%
img/remove.png0.40KB0.42KB0.00%
img/link.png0.52KB0.60KB0.00%
img/cross.png0.85KB0.90KB0.00%