89% add-css-and-js-option-page-wise

Code Review | Add Css And Js Option Page Wise

WordPress plugin Add Css And Js Option Page Wise scored 89% from 54 tests.

About plugin

  • Plugin page: add-css-and-js-op...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Feb 1, 2019
  • Latest release: Feb 1, 2019
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: chintan238 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 459 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼293.54ms] Passed 4 tests

A check of server-side resources used by Add Css And Js Option Page Wise
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0961.16 ▲13.01
Dashboard /wp-admin3.46 ▲0.0534.39 ▼0.09
Posts /wp-admin/edit.php3.68 ▲0.0440.02 ▲0.25
Add New Post /wp-admin/post-new.php6.93 ▼0.0594.16 ▼1,175.10
Media Library /wp-admin/upload.php3.33 ▲0.0325.69 ▲0.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Add Css And Js Option Page Wise
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,847 ▲9315.93 ▼0.125.71 ▼0.892.30 ▼0.63
Dashboard /wp-admin2,922 ▲616.16 ▲0.07117.09 ▼16.32155.47 ▼9.69
Posts /wp-admin/edit.php2,725 ▲373.28 ▲0.0663.93 ▼0.20143.12 ▲2.28
Add New Post /wp-admin/post-new.php1,768 ▲7221.58 ▼0.11461.84 ▲37.31158.18 ▼2.01
Media Library /wp-admin/upload.php1,722 ▲245.56 ▲0.10161.78 ▲15.51196.33 ▲4.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+307
    call_user_func_array() expects parameter 1 to be a valid callback, class 'OCSSJS' does not have a method 'deactivate'

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

add-css-and-js-option-page-wise/css-js-ordeing-page-wise.php 92% from 13 tests

The entry point to "Add Css And Js Option Page Wise" 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: Please rename the main PHP file in this plugin to the plugin slug ("add-css-and-js-option-page-wise.php" instead of "css-js-ordeing-page-wise.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected634 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin