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.00MB] [CPU: ▼8.90ms] Passed 4 tests
This is a short check of server-side resources used by Prism Syntax Highlighter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.29 ▲5.33 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.62 ▼19.28 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.34 ▼10.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.34 ▼8.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.90 ▲2.83 |
Prism Settings /wp-admin/options-general.php?page=wp-prism | 3.21 | 33.46 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Prism Syntax Highlighter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.39 ▲0.11 | 1.95 ▲0.31 | 42.92 ▲1.68 |
Dashboard /wp-admin | 2,206 ▲26 | 5.59 ▼0.06 | 88.14 ▼1.33 | 40.18 ▲0.26 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.01 ▲0.02 | 38.51 ▲1.67 | 34.02 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.18 ▲0.24 | 679.26 ▼0.33 | 59.76 ▼13.08 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.24 ▲0.01 | 104.38 ▼0.55 | 44.19 ▼0.83 |
Prism Settings /wp-admin/options-general.php?page=wp-prism | 859 | 2.04 | 27.34 | 27.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/prism-syntax-highlighter/wp-prism.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: code, pre, prism, syntax, highlighter
prism-syntax-highlighter/wp-prism.php 92% from 13 tests
The entry point to "Prism Syntax Highlighter" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("prism-syntax-highlighter.php" instead of "wp-prism.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin644 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 78 | 21 | 406 |
JavaScript | 4 | 49 | 7 | 122 |
PHP | 1 | 18 | 10 | 99 |
PO File | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin