Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.05ms] Passed 4 tests
Analyzing server-side resources used by WP-GeSHi-Highlight — rock-solid syntax highlighting for 259 languages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.53 ▼3.02 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.59 ▼2.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.07 ▼0.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.26 ▲0.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.73 ▼1.73 |
Server storage [IO: ▲3.97MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 261 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-GeSHi-Highlight — rock-solid syntax highlighting for 259 languages
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▼0.29 | 1.62 ▼0.06 | 42.07 ▲0.09 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▼0.05 | 89.89 ▼2.64 | 40.12 ▲0.16 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.04 ▲0.04 | 38.37 ▼23.69 | 37.24 ▼6.85 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.20 ▼0.30 | 632.90 ▼56.90 | 51.12 ▼8.65 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.23 ▼0.01 | 122.85 ▲13.22 | 49.72 ▲3.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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
Good news, no errors were detected
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 items
- 2125× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant GESHI_AFTER - assumed 'GESHI_AFTER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/dos.php on line 187
- > PHP Warning
Use of undefined constant GESHI_NUMBER_FLT_SCI_ZERO - assumed 'GESHI_NUMBER_FLT_SCI_ZERO' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/asm.php on line 583
- > PHP Warning
Use of undefined constant GESHI_NUMBER_BIN_PREFIX_PERCENT - assumed 'GESHI_NUMBER_BIN_PREFIX_PERCENT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/68000devpac.php on line 123
- > PHP Warning
Use of undefined constant GESHI_NEVER - assumed 'GESHI_NEVER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/bf.php on line 96
- > PHP Warning
Use of undefined constant GESHI_SEARCH - assumed 'GESHI_SEARCH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/xojo.php on line 261
- > PHP Warning
Use of undefined constant GESHI_BEFORE - assumed 'GESHI_BEFORE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/rsplus.php on line 466
- > PHP Warning
Use of undefined constant GESHI_MODIFIERS - assumed 'GESHI_MODIFIERS' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/diff.php on line 136
- > PHP Warning
Use of undefined constant GESHI_MODIFIERS - assumed 'GESHI_MODIFIERS' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/reg.php on line 170
- > PHP Warning
Use of undefined constant GESHI_BEFORE - assumed 'GESHI_BEFORE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/gdb.php on line 154
- > PHP Warning
Use of undefined constant GESHI_NUMBER_INT_BASIC - assumed 'GESHI_NUMBER_INT_BASIC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-geshi-highlight/geshi/geshi/arm.php on line 3295
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: code, valid, highlight, highlighting, fast...
wp-geshi-highlight/wp-geshi-highlight.php Passed 13 tests
"WP-GeSHi-Highlight — rock-solid syntax highlighting for 259 languages" version 1.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
106 characters long description:
Syntax highlighting for 259 languages. Mobile-friendly. Easy-to-use. Based on a rock-solid engine (GeSHi).
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected70,584 lines of code in 260 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 258 | 1,971 | 14,862 | 70,534 |
CSS | 2 | 14 | 45 | 50 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 190)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 320.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 637.00 |
Average method complexity | 7.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 190.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 1 | 1.06% |
▷ Public methods | 74 | 78.72% |
▷ Protected methods | 20 | 21.28% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 54 | |
▷ Global constants | 54 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected