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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 36.89 ▲14.21 |
Dashboard /wp-admin | 3.17 ▲0.11 | 46.99 ▼0.41 |
Posts /wp-admin/edit.php | 3.22 ▲0.10 | 46.08 ▼4.20 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 84.30 ▼678.80 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 32.86 ▼2.65 |
jArticles /wp-admin/edit.php?post_type=jarticle | 3.15 | 34.23 |
Add New /wp-admin/post-new.php?post_type=jarticle | 3.20 | 45.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲83 | 15.90 ▲0.38 | 8.96 ▼0.38 | 47.79 ▲1.21 |
Dashboard /wp-admin | 3,005 ▲74 | 5.96 ▼0.00 | 132.28 ▼10.47 | 113.95 ▲5.61 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.84 ▲0.14 | 60.77 ▼4.03 | 88.66 ▲4.58 |
Add New Post /wp-admin/post-new.php | 1,523 ▼2,183 | 18.75 ▼0.42 | 369.59 ▼78.21 | 111.03 ▼2.54 |
Media Library /wp-admin/upload.php | 1,845 ▲35 | 5.01 ▲0.02 | 143.90 ▼3.78 | 123.22 ▲4.72 |
jArticles /wp-admin/edit.php?post_type=jarticle | 1,440 | 2.62 | 61.82 | 69.14 |
Add New /wp-admin/post-new.php?post_type=jarticle | 2,905 | 9.10 | 215.96 | 148.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 101 | 154 | 498 |
JavaScript | 2 | 30 | 98 | 431 |
CSS | 1 | 4 | 3 | 23 |
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 code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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