Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.82ms] Passed 4 tests
A check of server-side resources used by Navarak Code Highlighter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.43 ▼3.02 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.56 ▼6.77 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 52.84 ▲1.30 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.73 ▼6.79 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.72 ▲3.66 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 127 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Navarak Code Highlighter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲144 | 14.08 ▼0.27 | 20.23 ▲18.06 | 44.81 ▼1.75 |
Dashboard /wp-admin | 2,202 ▲22 | 5.61 ▼0.05 | 92.97 ▼4.99 | 43.28 ▼2.14 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 34.50 ▼1.43 | 35.86 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.11 ▼0.08 | 640.62 ▼22.95 | 52.08 ▲0.07 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▲0.00 | 103.43 ▼0.91 | 49.10 ▲2.78 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% 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 0% from 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/navarak-code-highlighter/admin/partials/navarak-code-highlighter-admin-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/navarak-code-highlighter/admin/partials/navarak-code-highlighter-admin-display.php on line 19
- > PHP Notice
Undefined variable: scanned_directory in wp-content/plugins/navarak-code-highlighter/admin/partials/navarak-code-highlighter-admin-display.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/navarak-code-highlighter/public/partials/navarak-code-highlighter-public-display.php:19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== navarak-code-highlighter ===
)
navarak-code-highlighter/navarak-code-highlighter.php Passed 13 tests
"Navarak Code Highlighter" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
This plugin is developed by NAVARAK team from 0 to learn users how to insert codes inside their posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin8,010 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 99 | 1,366 | 747 | 6,389 |
JavaScript | 3 | 10 | 35 | 1,349 |
PHP | 12 | 128 | 532 | 234 |
PO File | 1 | 9 | 11 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/highlightjs/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |
public/css/highlightjs/school-book.png | 0.47KB | 0.34KB | ▼ 27.37% |