Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼151.75ms] Passed 4 tests
An overview of server-side resources used by RY Code Highlight
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.09 | 25.91 ▼2.43 |
Dashboard /wp-admin | 3.19 ▲0.13 | 35.98 ▼7.49 |
Posts /wp-admin/edit.php | 3.31 ▲0.19 | 33.54 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.12 | 74.43 ▼595.87 |
Media Library /wp-admin/upload.php | 3.14 ▲0.13 | 25.78 ▼0.41 |
RY Code Highlight /wp-admin/options-general.php?page=ry-code-highlight | 3.08 | 24.47 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 4 new options
New WordPress options |
---|
RY_CHL_use_cdn |
RY_CHL_version |
RY_CHL_use_code_shortcode |
RY_CHL_color_theme |
Browser metrics Passed 4 tests
Checking browser requirements for RY Code Highlight
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,671 ▲69 | 15.67 ▼0.29 | 5.06 ▼1.69 | 73.21 ▲0.56 |
Dashboard /wp-admin | 2,935 ▲36 | 6.13 ▼0.08 | 117.69 ▼15.11 | 167.94 ▲0.57 |
Posts /wp-admin/edit.php | 2,742 ▼1 | 3.24 ▲0.01 | 63.26 ▲0.51 | 136.02 ▼4.95 |
Add New Post /wp-admin/post-new.php | 4,264 ▲558 | 21.34 ▲2.49 | 415.83 ▼10.32 | 178.42 ▲12.53 |
Media Library /wp-admin/upload.php | 1,757 ▲5 | 5.51 ▲0.02 | 145.20 ▲1.16 | 184.41 ▲2.24 |
RY Code Highlight /wp-admin/options-general.php?page=ry-code-highlight | 1,214 | 2.41 | 56.90 | 132.34 |
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
- The uninstall procedure has failed, leaving 4 options in the database
- RY_CHL_use_code_shortcode
- RY_CHL_use_cdn
- RY_CHL_version
- RY_CHL_color_theme
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
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=ry-code-highlight
- > Notice in wp-content/plugins/ry-code-highlight/class.admin.php+47
Undefined index: tab
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 take a closer look at the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ry-code-highlight/class.main.php
- > /wp-content/plugins/ry-code-highlight/class.update.php
- > /wp-content/plugins/ry-code-highlight/class.admin-html.php
- > /wp-content/plugins/ry-code-highlight/ry-code-highlight.php
- > /wp-content/plugins/ry-code-highlight/class.admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 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
3 plugin tags: highlight, code, shortcode
ry-code-highlight/ry-code-highlight.php Passed 13 tests
The primary PHP file in "RY Code Highlight" version 1.0.2 is used by WordPress to initiate all plugin functionality
17 characters long description:
Highlighted code.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin5,179 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 25 | 272 | 3,488 |
JavaScript | 28 | 189 | 518 | 994 |
PHP | 5 | 72 | 12 | 584 |
PO File | 1 | 44 | 47 | 113 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 18.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 30 | 100.00% |
▷ Public methods | 26 | 86.67% |
▷ Protected methods | 4 | 13.33% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected