Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.36ms] Passed 4 tests
Analyzing server-side resources used by Code View
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.40 ▲0.33 |
Dashboard /wp-admin | 3.35 ▲0.00 | 46.47 ▼11.60 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 42.49 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.50 ▼15.38 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.53 ▲0.80 |
CodeView Settings /wp-admin/options-general.php?page=codeview | 3.25 | 33.22 |
Server storage [IO: ▲0.52MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 194 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Code View
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲161 | 14.05 ▼0.51 | 7.08 ▲5.48 | 43.69 ▲4.05 |
Dashboard /wp-admin | 2,211 ▲37 | 5.84 ▲0.28 | 85.42 ▼2.60 | 37.11 ▼2.87 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.37 ▲0.36 | 41.49 ▲5.24 | 32.68 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.97 ▲0.99 | 624.66 ▲11.66 | 33.81 ▼19.49 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.49 ▲0.33 | 93.61 ▼1.95 | 40.72 ▼0.62 |
CodeView Settings /wp-admin/options-general.php?page=codeview | 1,438 | 2.16 | 44.36 | 50.41 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- 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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/code-view/code-view/code-view.php:54
- > PHP Fatal error
Uncaught Error: Class 'CodeView' not found in wp-content/plugins/code-view/pages/code.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/code-view/code-view.php:250
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/code-view/pages/settings-page.php:9
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- Screenshots: A description for screenshot #1 is missing in code-view/assets to your readme.txt
code-view/code-view.php 92% from 13 tests
Analyzing the main PHP file in "Code View" version 0.0.5
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,639 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 81 | 996 | 585 | 4,782 |
Markdown | 3 | 538 | 1 | 1,399 |
PHP | 5 | 65 | 90 | 299 |
SVG | 1 | 1 | 1 | 65 |
JavaScript | 5 | 9 | 1 | 48 |
LESS | 2 | 11 | 0 | 46 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 8 | 72.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 27.27% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
code-view/assets/highlight/styles/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |
screenshot-on-the-post.png | 26.61KB | 7.46KB | ▼ 71.95% |
code-view/screenshot-on-the-post.png | 26.61KB | 7.46KB | ▼ 71.95% |
assets/highlight/styles/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |
code-view/assets/highlight/styles/school-book.png | 0.47KB | 0.34KB | ▼ 27.37% |