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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼14.20ms] Passed 4 tests
A check of server-side resources used by PrettyCode • Code syntax highlighting with CodeMirror
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.82 ▼5.70 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.23 ▼19.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.11 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.91 ▼30.32 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.12 ▼0.94 |
Server storage [IO: ▲2.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 235 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PrettyCode • Code syntax highlighting with CodeMirror
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲46 | 14.27 ▼0.09 | 1.82 ▲0.03 | 47.21 ▲3.21 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.03 | 91.23 ▼3.19 | 40.63 ▼1.66 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▼0.04 | 39.60 ▲2.41 | 34.48 ▲0.48 |
Add New Post /wp-admin/post-new.php | 6,371 ▲4,834 | 29.37 ▲11.27 | 907.06 ▲283.55 | 61.78 ▼19.64 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.05 | 101.49 ▲0.63 | 46.37 ▲0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/prettycode/templates/code.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2 in prettycode/assets to your readme.txt
prettycode/prettycode.php Passed 13 tests
The main PHP script in "PrettyCode • Code syntax highlighting with CodeMirror" version 1.0.7 is automatically included on every request by WordPress
65 characters long description:
Code snippets highlighting made simple, for the WordPress editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin40,904 lines of code in 232 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 160 | 5,109 | 3,590 | 38,200 |
CSS | 60 | 425 | 300 | 2,312 |
PHP | 9 | 68 | 119 | 357 |
JSON | 2 | 0 | 0 | 20 |
PO File | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 3 | 42.86% |
▷ Concrete classes | 4 | 57.14% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 4 | 28.57% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin