Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▼0.67ms] Passed 4 tests
This is a short check of server-side resources used by oik-css
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 41.38 ▼2.09 |
Dashboard /wp-admin | 3.63 ▲0.32 | 48.20 ▲0.10 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 50.79 ▼0.70 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 95.15 ▲0.01 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 40.78 ▲5.52 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for oik-css
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.34 ▼0.01 | 1.66 ▼0.07 | 40.40 ▼3.34 |
Dashboard /wp-admin | 2,195 ▲15 | 5.48 ▼0.15 | 84.07 ▼12.15 | 36.60 ▼8.75 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.06 | 38.92 ▼3.64 | 36.24 ▼2.82 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,838 | 27.62 ▲4.52 | 789.06 ▲117.41 | 54.00 ▼4.52 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.11 | 94.26 ▼3.06 | 43.66 ▲1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 33× PHP files trigger server errors when accessed directly (only 10 are shown):
- > 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/oik-css/geshi/geshi/php.php on line 65
- > 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/oik-css/geshi/geshi/jquery.php on line 46
- > 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/oik-css/geshi/geshi/mysql.php on line 58
- > 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/oik-css/geshi/geshi/php.php on line 989
- > 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/oik-css/geshi/geshi/css.php on line 63
- > 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/oik-css/geshi/geshi/php.php on line 1028
- > 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/oik-css/geshi/geshi/javascript.php on line 54
- > PHP Warning
Use of undefined constant GESHI_MAYBE - assumed 'GESHI_MAYBE' (this will throw an Error in a future version of PHP) in wp-content/plugins/oik-css/geshi/geshi/php.php on line 1067
- > 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/oik-css/geshi/geshi/php.php on line 86
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oik-css/libs/oik-shortcodes.php:485
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tested up to: The plugin version is formatted incorrectly
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (CSS block example), #2 (GeSHi block example), #3 ([bw_css] - syntax and examples), #4 ([bw_geshi] - examples), #5 (oik-CSS options - available when oik is active)
oik-css/oik-css.php Passed 13 tests
The main PHP script in "oik-css" version 2.1.2 is automatically included on every request by WordPress
98 characters long description:
Implements CSS and GeSHi blocks for internal CSS styling and to help document source code examples
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,499 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 877 | 4,374 | 7,848 |
JavaScript | 7 | 451 | 300 | 885 |
PO File | 2 | 172 | 200 | 416 |
JSON | 7 | 0 | 0 | 279 |
Sass | 4 | 5 | 0 | 43 |
Markdown | 1 | 20 | 0 | 21 |
CSS | 4 | 0 | 0 | 7 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 189)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 135.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 635.00 |
Average method complexity | 6.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 189.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 28 | 21.88% |
▷ Public methods | 108 | 84.38% |
▷ Protected methods | 20 | 15.62% |
▷ Private methods | 0 | 0.00% |
Functions | 202 | |
▷ Named functions | 201 | 99.50% |
▷ Anonymous functions | 1 | 0.50% |
Constants | 75 | |
▷ Global constants | 75 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 15.73KB | 6.73KB | ▼ 57.18% |
screenshot-4.png | 13.75KB | 7.48KB | ▼ 45.58% |
screenshot-3.png | 24.88KB | 11.72KB | ▼ 52.89% |