84% genesis-js-no-js

Code Review | Genesis JS / No JS

WordPress plugin Genesis JS / No JS scored84%from 54 tests.

About plugin

  • Plugin page: genesis-js-no-js
  • Plugin version: 3.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.1
  • WordPress version: 6.3.1
  • First release: May 24, 2011
  • Latest release: Nov 30, 2017
  • Number of updates: 22
  • Update frequency: every 108.3 days
  • Top authors: GaryJ (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /8,998 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.09ms] Passed 4 tests

An overview of server-side resources used by Genesis JS / No JS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.78 ▼2.54
Dashboard /wp-admin3.31 ▲0.0145.06 ▼7.86
Posts /wp-admin/edit.php3.36 ▲0.0048.77 ▼4.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.86 ▼13.19
Media Library /wp-admin/upload.php3.23 ▲0.0037.31 ▲1.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis JS / No JS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.241.85 ▲0.0341.28 ▼4.52
Dashboard /wp-admin2,203 ▲125.80 ▼0.0896.25 ▼2.5637.99 ▼2.39
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0039.54 ▼0.1934.13 ▼1.42
Add New Post /wp-admin/post-new.php1,528 ▼818.29 ▼4.76611.12 ▼72.4250.19 ▼9.57
Media Library /wp-admin/upload.php1,385 ▼34.26 ▲0.05103.77 ▼9.1543.71 ▼6.18

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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 everything seems fine, this is not 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
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Gamajo\\GenesisJsNoJs\\Tests\\TestCase' not found in wp-content/plugins/genesis-js-no-js/tests/Unit/FrontEndTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Gamajo\\GenesisJsNoJs\\Tests\\TestCase' not found in wp-content/plugins/genesis-js-no-js/tests/Unit/PluginTest.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/genesis-js-no-js/tests/TestCase.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: genesis, js-no-js

genesis-js-no-js/genesis-js-no-js.php 92% from 13 tests

The main file in "Genesis JS / No JS" v. 3.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 387 characters long)

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 detected559 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP963250189
Markdown3550153
Bourne Shell12935137
JSON10056
XML12124

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods317.65%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin