Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.55ms] Passed 4 tests
Analyzing server-side resources used by WP Colored Coding
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 52.51 ▲11.66 |
Dashboard /wp-admin | 3.48 ▲0.13 | 47.57 ▼12.61 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.70 ▼5.53 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 106.87 ▲7.38 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.11 ▲0.55 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Colored Coding
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲193 | 13.55 ▼0.85 | 2.08 ▲0.15 | 42.70 ▼2.39 |
Dashboard /wp-admin | 2,340 ▲149 | 5.29 ▼0.60 | 115.15 ▲3.04 | 42.11 ▲3.14 |
Posts /wp-admin/edit.php | 2,231 ▲142 | 2.46 ▲0.46 | 53.09 ▲10.98 | 36.82 ▼0.43 |
Add New Post /wp-admin/post-new.php | 6,527 ▲5,008 | 21.86 ▼1.38 | 836.66 ▲242.70 | 84.18 ▲37.40 |
Media Library /wp-admin/upload.php | 1,528 ▲146 | 4.71 ▲0.44 | 100.32 ▲1.99 | 44.14 ▲2.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-colored-coding/wp-colored-coding.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-colored-coding/php/class-Rainbow_API.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
3 plugin tags: rainbowjs, code samples, syntax highlighting
wp-colored-coding/wp-colored-coding.php Passed 13 tests
The main PHP script in "WP Colored Coding" version 2014.08.19 is automatically included on every request by WordPress
98 characters long description:
Managing Codeblocks independent from the WP Texteditor and use Rainbow.js for syntax highlighting.
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
No dangerous file extensions were detected2,636 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 189 | 473 | 833 |
CSS | 13 | 178 | 111 | 752 |
JavaScript | 7 | 175 | 522 | 746 |
PO File | 3 | 69 | 135 | 192 |
Markdown | 1 | 33 | 0 | 113 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 38.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 6 | 15.38% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 3 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 71.22KB | 27.84KB | ▼ 60.91% |
img/cc.png | 0.90KB | 1.00KB | 0.00% |
screenshot-2.png | 20.24KB | 8.57KB | ▼ 57.64% |
screenshot-3.png | 70.91KB | 30.66KB | ▼ 56.76% |