68% zia3-css-js

Code Review | Zia3 CSS JS

WordPress plugin Zia3 CSS JS scored68%from 54 tests.

About plugin

  • Plugin page: zia3-css-js
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5
  • WordPress version: 6.3.1
  • First release: Jun 22, 2013
  • Latest release: Sep 18, 2015
  • Number of updates: 45
  • Update frequency: every 18.2 days
  • Top authors: zia3wp (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active /10,200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.56MB] [CPU: ▼17.33ms] Passed 4 tests

Analyzing server-side resources used by Zia3 CSS JS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.07 ▼1.78
Dashboard /wp-admin3.43 ▲0.1348.74 ▼1.85
Posts /wp-admin/edit.php3.55 ▲0.1947.00 ▼4.06
Add New Post /wp-admin/post-new.php3.28 ▼2.6137.37 ▼61.62
Media Library /wp-admin/upload.php3.36 ▲0.1236.28 ▲4.31
Zia3-JS-CSS /wp-admin/plugins.php?page=zia3-css-js/zia3_meta_options.php3.3031.45
Zia3-JS-CSS /wp-admin/options-general.php?page=zia3-css-js/zia3_meta_options.php3.3030.71

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 252 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
zia3meta_plugin_options

Browser metrics Passed 4 tests

A check of browser resources used by Zia3 CSS JS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.22 ▼1.171.70 ▼0.0443.81 ▲2.96
Dashboard /wp-admin2,214 ▲264.83 ▼0.06109.68 ▼1.0243.26 ▲0.92
Posts /wp-admin/edit.php2,097 ▲81.97 ▼0.0536.28 ▼4.2731.30 ▼3.54
Add New Post /wp-admin/post-new.php6,482 ▲4,95426.41 ▲3.32920.31 ▲223.1243.87 ▼14.57
Media Library /wp-admin/upload.php1,396 ▲114.20 ▲0.0198.32 ▼0.9442.24 ▼0.09
Zia3-JS-CSS /wp-admin/plugins.php?page=zia3-css-js/zia3_meta_options.php8032.0623.7027.05
Zia3-JS-CSS /wp-admin/options-general.php?page=zia3-css-js/zia3_meta_options.php8042.0623.1426.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • zia3meta_plugin_options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=zia3-css-js/zia3_meta_options.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=zia3-css-js/zia3_meta_options.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-includes/option.php' (include_path='.:/usr/share/php') in wp-content/plugins/zia3-css-js/zia3_meta_options.php on line 21
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-includes/option.php' (include_path='.:/usr/share/php') in wp-content/plugins/zia3-css-js/zia3_meta_options.php on line 21
    • > PHP Warning
      require_once(ABSPATH/wp-includes/option.php): failed to open stream: No such file or directory in wp-content/plugins/zia3-css-js/zia3_meta_options.php on line 21
    • > PHP Warning
      require_once(ABSPATH/wp-includes/option.php): failed to open stream: No such file or directory in wp-content/plugins/zia3-css-js/zia3_meta_options.php on line 21
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zia3-css-js/zia3_meta_options.php on line 21
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zia3-css-js/zia3_meta_options.php on line 21

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt is a good inspiration

zia3-css-js/zia3_meta.php 92% from 13 tests

The entry point to "Zia3 CSS JS" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zia3-css-js.php" instead of "zia3_meta.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .ls - LightWave LScript File in LightWave
      • wp-content/plugins/zia3-css-js/syntax_highlighter/mode/livescript/livescript.ls
41,550 lines of code in 232 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1313,2892,54632,100
HTML691,287277,781
CSS27160120974
PHP2102115657
JSON20035
YAML1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin