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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▲1.87ms] Passed 4 tests
A check of server-side resources used by iG:Syntax Hiliter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.75 | 42.63 ▲2.17 |
Dashboard /wp-admin | 3.55 ▲0.24 | 50.01 ▲3.73 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.68 ▲2.70 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 93.70 ▲4.26 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.49 ▼1.12 |
iG:Syntax Hiliter /wp-admin/options-general.php?page=ig-syntax-hiliter-page | 3.41 | 34.28 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, 10 new options
New WordPress options |
---|
ig-syntax-hiliter-lang-time |
ig-syntax-hiliter-options |
theysaidso_admin_options |
can_compress_scripts |
igsh-cache-12f9a235b97059bd720b231411cab867 |
widget_recent-comments |
widget_theysaidso_widget |
ig-syntax-hiliter-version |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by iG:Syntax Hiliter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.32 ▼1.24 | 1.76 ▼0.07 | 44.43 ▲1.12 |
Dashboard /wp-admin | 2,207 ▲16 | 5.91 ▲0.85 | 112.68 ▲10.02 | 46.15 ▲0.01 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.05 ▼0.14 | 35.78 ▼6.93 | 31.41 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,536 ▼8 | 23.05 ▲4.61 | 640.29 ▲3.18 | 55.16 ▼3.55 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.22 ▼0.05 | 97.44 ▼0.78 | 42.21 ▼2.57 |
iG:Syntax Hiliter /wp-admin/options-general.php?page=ig-syntax-hiliter-page | 1,067 | 1.68 | 24.65 | 27.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- theysaidso_admin_options
- ig-syntax-hiliter-options
- igsh-cache-12f9a235b97059bd720b231411cab867
- ig-syntax-hiliter-version
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- ig-syntax-hiliter-lang-time
- widget_recent-posts
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 295× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > 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/igsyntax-hiliter/geshi/ini.php on line 117
- > PHP Warning
Use of undefined constant GESHI_COMMENTS - assumed 'GESHI_COMMENTS' (this will throw an Error in a future version of PHP) in wp-content/plugins/igsyntax-hiliter/geshi/sql.php on line 116
- > 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/igsyntax-hiliter/geshi/java.php on line 976
- > 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/igsyntax-hiliter/geshi/python.php on line 237
- > PHP Warning
Use of undefined constant GESHI_REPLACE - assumed 'GESHI_REPLACE' (this will throw an Error in a future version of PHP) in wp-content/plugins/igsyntax-hiliter/geshi/ruby.php on line 213
- > PHP Warning
Use of undefined constant GESHI_NUMBER_FLT_SCI_SHORT - assumed 'GESHI_NUMBER_FLT_SCI_SHORT' (this will throw an Error in a future version of PHP) in wp-content/plugins/igsyntax-hiliter/geshi/cpp.php on line 79
- > PHP Warning
Use of undefined constant GESHI_CAPS_NO_CHANGE - assumed 'GESHI_CAPS_NO_CHANGE' (this will throw an Error in a future version of PHP) in wp-content/plugins/igsyntax-hiliter/geshi/postgresql.php on line 45
- > PHP Warning
Use of undefined constant GESHI_NUMBER_FLT_NONSCI_F - assumed 'GESHI_NUMBER_FLT_NONSCI_F' (this will throw an Error in a future version of PHP) in wp-content/plugins/igsyntax-hiliter/geshi/c.php on line 245
- > PHP Warning
Use of undefined constant GESHI_NUMBER_FLT_SCI_SHORT - assumed 'GESHI_NUMBER_FLT_SCI_SHORT' (this will throw an Error in a future version of PHP) in wp-content/plugins/igsyntax-hiliter/geshi/c.php on line 85
- > 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/igsyntax-hiliter/geshi/php.php on line 1030
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: javascript, syntax highlighter, php, html, code...
igsyntax-hiliter/ig-syntax-hiliter.php 85% from 13 tests
The main PHP file in "iG:Syntax Hiliter" ver. 5.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 222 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("igsyntax-hiliter.php" instead of "ig-syntax-hiliter.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin14,567 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 1,374 | 4,634 | 13,959 |
JavaScript | 5 | 50 | 75 | 204 |
Sass | 5 | 30 | 0 | 175 |
Markdown | 2 | 86 | 0 | 169 |
CSS | 3 | 3 | 2 | 48 |
Ruby | 1 | 7 | 15 | 12 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 199)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 63.46 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 637.00 |
Average method complexity | 5.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 199.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 1 | 10.00% |
Methods | 175 | |
▷ Static methods | 14 | 8.00% |
▷ Public methods | 143 | 81.71% |
▷ Protected methods | 30 | 17.14% |
▷ Private methods | 2 | 1.14% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 69 | |
▷ Global constants | 59 | 85.51% |
▷ Class constants | 10 | 14.49% |
▷ Public constants | 10 | 100.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 images were found in this plugin