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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.07ms] Passed 4 tests
A check of server-side resources used by REST API support for Crayon Syntax Highlighter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.37 ▼3.57 |
Dashboard /wp-admin | 3.32 ▲0.01 | 56.64 ▲3.75 |
Posts /wp-admin/edit.php | 3.38 ▲0.01 | 58.37 ▲4.45 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.01 | 95.11 ▼30.29 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 35.82 ▼2.17 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
REST API support for Crayon Syntax Highlighter: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.61 ▲0.40 | 1.69 ▼0.41 | 42.79 ▼4.51 |
Dashboard /wp-admin | 2,200 ▼6 | 5.84 ▼0.05 | 101.94 ▼7.81 | 42.62 ▼0.82 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.00 ▲0.03 | 41.58 ▲4.88 | 37.17 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.36 ▲5.74 | 788.24 ▲158.69 | 58.56 ▲11.51 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.05 | 97.87 ▼10.01 | 43.38 ▲2.04 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 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 detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rest-api-support-for-crayon-syntax-highlighter/rest-api-support-for-crayon-syntax-highlighter.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
6 plugin tags: rest, syntax highlight, code, crayon, syntax highlighter...
rest-api-support-for-crayon-syntax-highlighter/rest-api-support-for-crayon-syntax-highlighter.php Passed 13 tests
The principal PHP file in "REST API support for Crayon Syntax Highlighter" v. 1.0.0 is loaded by WordPress automatically on each request
62 characters long description:
Adds WordPress REST API support for Crayon Syntax Highlighter.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin81 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 56 | 81 |
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.59 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 9 | |
▷ Static methods | 4 | 44.44% |
▷ Public methods | 4 | 44.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 55.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin