78% js-css-include-manager

Code Review | Js Css Include Manager

WordPress plugin Js Css Include Manager scored78%from 54 tests.

About plugin

  • Plugin page: js-css-include-ma...
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 6.3.1
  • First release: Oct 21, 2012
  • Latest release: Sep 24, 2015
  • Number of updates: 40
  • Update frequency: every 26.7 days
  • Top authors: gqevu6bsiz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /5,757 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.20MB] [CPU: ▼4.71ms] Passed 4 tests

Server-side resources used by Js Css Include Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1938.89 ▼5.16
Dashboard /wp-admin3.53 ▲0.2248.05 ▼11.24
Posts /wp-admin/edit.php3.61 ▲0.2551.50 ▲3.11
Add New Post /wp-admin/post-new.php6.08 ▲0.1992.88 ▼5.53
Media Library /wp-admin/upload.php3.42 ▲0.1938.90 ▲3.42
Js Css Include Manager /wp-admin/options-general.php?page=js_css_include_manager3.4936.06

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Js Css Include Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.65 ▼0.741.60 ▼0.2240.32 ▼3.25
Dashboard /wp-admin2,210 ▲255.88 ▲0.98106.59 ▼4.4141.44 ▼0.61
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0239.65 ▲4.5136.18 ▲1.51
Add New Post /wp-admin/post-new.php1,545 ▲2618.51 ▼4.46603.19 ▼24.3255.28 ▼6.70
Media Library /wp-admin/upload.php1,386 ▲14.16 ▼0.0699.74 ▲0.3743.53 ▼1.32
Js Css Include Manager /wp-admin/options-general.php?page=js_css_include_manager1,2262.0342.1433.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=js_css_include_manager
    • > Notice in wp-content/plugins/js-css-include-manager/js-css-include-manager.php+186
    Trying to access array offset on value of type bool

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 fix the following items
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'ClassData' of non-object in wp-content/plugins/js-css-include-manager/inc/other.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/js-css-include-manager/js-css-include-manager.php:49
    • > PHP Notice
      Trying to get property 'ClassData' of non-object in wp-content/plugins/js-css-include-manager/inc/setting.php on line 5
    • > PHP Notice
      Trying to get property 'ClassInfo' of non-object in wp-content/plugins/js-css-include-manager/inc/information.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_donated() on null in wp-content/plugins/js-css-include-manager/inc/information.php:1
    • > PHP Notice
      Undefined variable: Jcim in wp-content/plugins/js-css-include-manager/inc/information.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_data_others() on null in wp-content/plugins/js-css-include-manager/inc/other.php:5
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_data_include_manage() on null in wp-content/plugins/js-css-include-manager/inc/setting.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Settings Interface), #2 (Configuration Example), #3 (Conditions after added of settins interface)
The official readme.txt might help

js-css-include-manager/js-css-include-manager.php 92% from 13 tests

The main file in "Js Css Include Manager" v. 1.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,723 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8888331,440
CSS1110152
PO File14756111
JavaScript16020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity44.00
▷ Minimum class complexity26.00
▷ Maximum class complexity70.00
Average method complexity3.99
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods6184.72%
▷ Protected methods00.00%
▷ Private methods1115.28%
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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png18.86KB7.90KB▼ 58.10%
screenshot-1.png48.43KB20.64KB▼ 57.38%
screenshot-3.png16.65KB5.79KB▼ 65.23%