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
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.00ms] Passed 4 tests
A check of server-side resources used by PCSH (PastaCode and SyntaxHighlighter)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.98 ▼0.21 |
Dashboard /wp-admin | 3.43 ▲0.12 | 51.11 ▼0.53 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.77 ▼4.96 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 88.04 ▼6.28 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.90 ▲4.51 |
PCSH /wp-admin/options-general.php?page=pcsh | 3.29 | 33.13 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 8 new options
New WordPress options |
---|
pcsh_cache_duration |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
pcsh_style |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PCSH (PastaCode and SyntaxHighlighter)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.34 ▼0.96 | 2.00 ▼0.25 | 44.57 ▼0.70 |
Dashboard /wp-admin | 2,218 ▲33 | 4.86 ▼1.02 | 115.56 ▲10.88 | 44.96 ▲3.83 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.01 ▼0.04 | 35.75 ▼9.89 | 36.41 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 17.75 ▼5.50 | 663.59 ▲31.84 | 63.71 ▲14.12 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.19 ▼0.10 | 98.94 ▼5.79 | 41.89 ▼0.88 |
PCSH /wp-admin/options-general.php?page=pcsh | 878 | 2.02 | 25.58 | 27.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=pcsh
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=pcsh
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pcsh-pastacode-syntaxhighlighter/pastacodeSH.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: github, syntaxique coloration, syntaxhighlighter, gist, code...
pcsh-pastacode-syntaxhighlighter/pastacodeSH.php 85% from 13 tests
"PCSH (PastaCode and SyntaxHighlighter)" version 0.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pcsh-pastacode-syntaxhighlighter.php" instead of "pastacodeSH.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,651 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 31 | 272 | 3,546 |
JavaScript | 29 | 218 | 527 | 1,239 |
PHP | 2 | 121 | 217 | 681 |
PO File | 2 | 84 | 206 | 180 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pcsh-placeholder.png | 1.73KB | 0.93KB | ▼ 46.08% |
images/pcsh_logo.png | 0.52KB | 0.44KB | ▼ 15.47% |