Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/admin/settings.php
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.64ms] Passed 4 tests
Server-side resources used by BlogText
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.61 ▼32.97 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.35 ▼44.98 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.74 ▼42.58 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.54 ▼102.01 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.76 ▼31.36 |
BlogText /wp-admin/options-general.php?page=blogtext_settings | 2.05 | 5.17 |
Server storage [IO: ▲4.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 324 new files
Database: no new tables, 10 new options
New WordPress options |
---|
blogtext_version |
theysaidso_admin_options |
_cache_blogtext_externals_determine_date9 |
widget_recent-comments |
_cache_blogtext_content_loop_9cache_date_ |
widget_theysaidso_widget |
can_compress_scripts |
_cache_blogtext_content_loop_9cache_ |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BlogText
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲139 | 13.24 ▼1.14 | 1.73 ▲0.02 | 38.00 ▼4.07 |
Dashboard /wp-admin | 2,227 ▲36 | 5.81 ▲0.96 | 96.01 ▼9.86 | 35.97 ▼8.35 |
Posts /wp-admin/edit.php | 2,121 ▲53 | 2.04 ▲0.00 | 40.27 ▼0.21 | 37.23 ▲2.10 |
Add New Post /wp-admin/post-new.php | 6,485 ▲4,943 | 20.36 ▲2.23 | 946.51 ▲291.11 | 58.40 ▼11.11 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.14 ▼0.07 | 96.20 ▼2.58 | 46.83 ▲3.70 |
BlogText /wp-admin/options-general.php?page=blogtext_settings | 1,113 | 2.06 | 22.58 | 30.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/admin/settings.php
- The uninstall procedure has failed, leaving 10 options in the database
- _cache_blogtext_content_loop_9cache_date_
- widget_theysaidso_widget
- _cache_blogtext_content_loop_9cache_
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- blogtext_version
- widget_recent-posts
- widget_recent-comments
- _cache_blogtext_externals_determine_date9
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=blogtext_settings
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/admin/settings.php
- > GET request to /wp-admin/options-general.php?page=blogtext_settings
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/markup/blogtext_markup.php
- > GET request to /wp-admin/options-general.php?page=blogtext_settings
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/markup/textmarkup_base.php
- > GET request to /wp-admin/options-general.php?page=blogtext_settings
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/markup/PlaceholderManager.php
- > GET request to /wp-admin/options-general.php?page=blogtext_settings
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/markup/shortcodes/ImageShortCodeHandler.php
- > GET request to /wp-admin/options-general.php?page=blogtext_settings
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/markup/shortcodes/WordpressLinkShortCodeHandler.php
- > GET request to /wp-admin/options-general.php?page=blogtext_settings
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/markup/shortcodes/ILinkShortCodeHandler.php
- > GET request to /wp-admin/options-general.php?page=blogtext_settings
- > Notice in wp-content/plugins/blogtext/api/commons.php+90
Undefined index: wp-content/plugins/blogtext/admin/settings-page.php
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/blogtext/admin/editor/codeblock-lang/query.php
- 2135× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > 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/blogtext/thirdparty/geshi/geshi/oracle11.php on line 607
- > 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/blogtext/thirdparty/geshi/geshi/llvm.php on line 359
- > 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/blogtext/thirdparty/geshi/geshi/dos.php on line 168
- > 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/blogtext/thirdparty/geshi/geshi/arm.php on line 3304
- > PHP Warning
Use of undefined constant GESHI_NUMBER_HEX_PREFIX_DOLLAR - assumed 'GESHI_NUMBER_HEX_PREFIX_DOLLAR' (this will throw an Error in a future version of PHP) in wp-content/plugins/blogtext/thirdparty/geshi/geshi/68000devpac.php on line 148
- > 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/blogtext/thirdparty/geshi/geshi/sas.php on line 236
- > 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/blogtext/thirdparty/geshi/geshi/f1.php on line 143
- > 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/blogtext/thirdparty/geshi/geshi/racket.php on line 948
- > PHP Warning
Use of undefined constant GESHI_NUMBER_OCT_PREFIX - assumed 'GESHI_NUMBER_OCT_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/blogtext/thirdparty/geshi/geshi/aimms.php on line 279
- > 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/blogtext/thirdparty/geshi/geshi/lb.php on line 147
- > PHP Warning
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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: post, formatting, markup
blogtext/blogtext.php Passed 13 tests
Analyzing the main PHP file in "BlogText" version 0.9.10
100 characters long description:
Allows you to write your posts and pages with an alternative, easy-to-learn, and fast-to-type syntax
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin76,544 lines of code in 318 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 302 | 2,995 | 16,665 | 75,728 |
CSS | 10 | 125 | 211 | 489 |
JavaScript | 5 | 53 | 94 | 275 |
SVG | 1 | 0 | 0 | 52 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 189)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 22.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 635.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 189.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 8 | 12.50% |
▷ Concrete classes | 56 | 87.50% |
▷ Final classes | 1 | 1.79% |
Methods | 514 | |
▷ Static methods | 102 | 19.84% |
▷ Public methods | 320 | 62.26% |
▷ Protected methods | 102 | 19.84% |
▷ Private methods | 92 | 17.90% |
Functions | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
Constants | 122 | |
▷ Global constants | 55 | 45.08% |
▷ Class constants | 67 | 54.92% |
▷ Public constants | 67 | 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 files were detected