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.03MB] [CPU: ▼8.18ms] Passed 4 tests
Analyzing server-side resources used by WordPress Rainbow Hilite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.21 ▼0.78 |
Dashboard /wp-admin | 3.35 ▲0.00 | 43.84 ▼17.83 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.71 ▲3.40 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.77 ▼17.49 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.23 ▲4.68 |
Server storage [IO: ▲0.33MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Rainbow Hilite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.80 ▲0.45 | 3.04 ▲1.42 | 37.33 ▼0.72 |
Dashboard /wp-admin | 2,194 ▲20 | 5.51 ▼0.02 | 85.96 ▲1.53 | 40.28 ▼1.11 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.97 ▼0.05 | 34.65 ▲1.19 | 33.29 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,367 ▼159 | 16.61 ▼6.64 | 557.80 ▼110.40 | 49.37 ▼11.68 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.16 ▼0.02 | 100.51 ▲2.59 | 41.38 ▼4.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function RainbowHilite\\plugin_dir_path() in wp-content/plugins/wp-rainbow-hilite/wp-rainbow.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/wp-rainbow-hilite/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Class 'RainbowHilite\\Core\\Singleton' not found in wp-content/plugins/wp-rainbow-hilite/include/RainbowHilite/Admin/TinyMce/TinyMce.php:9
- > PHP Fatal error
Uncaught Error: Class 'RainbowHilite\\Core\\Singleton' not found in wp-content/plugins/wp-rainbow-hilite/include/RainbowHilite/Core/Core.php:5
- > PHP Fatal error
Uncaught Error: Class 'RainbowHilite\\Settings\\Settings' not found in wp-content/plugins/wp-rainbow-hilite/include/RainbowHilite/Settings/SettingsWriting.php:6
- > PHP Fatal error
Uncaught Error: Class 'RainbowHilite\\Admin\\TinyMce\\TinyMce' not found in wp-content/plugins/wp-rainbow-hilite/include/RainbowHilite/Admin/TinyMce/Rainbow/Rainbow.php:8
- > PHP Fatal error
Uncaught Error: Class 'RainbowHilite\\Core\\Singleton' not found in wp-content/plugins/wp-rainbow-hilite/include/RainbowHilite/Settings/Settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'RainbowHilite\\Core\\Singleton' not found in wp-content/plugins/wp-rainbow-hilite/include/RainbowHilite/Admin/Admin.php:7
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: syntax highlighting, rainbow, code
wp-rainbow-hilite/wp-rainbow.php 92% from 13 tests
The main file in "WordPress Rainbow Hilite" v. 2.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-rainbow-hilite.php" instead of "wp-rainbow.php")
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 plugin2,510 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 48 | 180 | 774 | 2,057 |
PHP | 10 | 200 | 226 | 428 |
CSS | 25 | 4 | 4 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 3 | 42.86% |
▷ Concrete classes | 4 | 57.14% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 28 | 73.68% |
▷ Protected methods | 7 | 18.42% |
▷ Private methods | 3 | 7.89% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin