94% jimmy-codeviewer

Code Review | Jimmy Codeviewer

WordPress plugin Jimmy Codeviewer scored 94% from 54 tests.

About plugin

  • Plugin page: jimmy-codeviewer
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 5.8.1
  • First release: Apr 17, 2017
  • Latest release: Apr 26, 2018
  • Number of updates: 14
  • Update frequency: every 27.0 days
  • Top authors: kenjmk7r9merchant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 594 total downloads

Benchmarks

Plugin footprint Passed 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.10MB] [CPU: ▼171.52ms] Passed 4 tests

Analyzing server-side resources used by Jimmy Codeviewer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.2336.89 ▲14.21
Dashboard /wp-admin3.17 ▲0.1146.99 ▼0.41
Posts /wp-admin/edit.php3.22 ▲0.1046.08 ▼4.20
Add New Post /wp-admin/post-new.php5.52 ▲0.0984.30 ▼678.80
Media Library /wp-admin/upload.php3.11 ▲0.1132.86 ▼2.65
jArticles /wp-admin/edit.php?post_type=jarticle3.1534.23
Add New /wp-admin/post-new.php?post_type=jarticle3.2045.92

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Jimmy Codeviewer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲8315.90 ▲0.388.96 ▼0.3847.79 ▲1.21
Dashboard /wp-admin3,005 ▲745.96 ▼0.00132.28 ▼10.47113.95 ▲5.61
Posts /wp-admin/edit.php2,774 ▲352.84 ▲0.1460.77 ▼4.0388.66 ▲4.58
Add New Post /wp-admin/post-new.php1,523 ▼2,18318.75 ▼0.42369.59 ▼78.21111.03 ▼2.54
Media Library /wp-admin/upload.php1,845 ▲355.01 ▲0.02143.90 ▼3.78123.22 ▲4.72
jArticles /wp-admin/edit.php?post_type=jarticle1,4402.6261.8269.14
Add New /wp-admin/post-new.php?post_type=jarticle2,9059.10215.96148.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jimmy-codeviewer/jimmy-codeviewer.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jimmy-codeviewer/article-loader.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jimmy-codeviewer/spansearch.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: svg, loader, script, viewer, layout...

jimmy-codeviewer/jimmy-codeviewer.php 92% from 13 tests

Analyzing the main PHP file in "Jimmy Codeviewer" version 1.0.6
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected952 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7101154498
JavaScript23098431
CSS14323

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin