Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.35MB] [CPU: ▼16.72ms] Passed 4 tests
A check of server-side resources used by APH Syntax Highlighter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.68 ▼37.24 |
Dashboard /wp-admin | 3.44 ▲0.14 | 55.16 ▼0.30 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 51.82 ▼1.57 |
Add New Post /wp-admin/post-new.php | 5.58 ▼0.30 | 76.65 ▼27.77 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 39.53 ▲1.89 |
Syntax Highlighter /wp-admin/options-general.php?page=aph-syntax-highlighter | 3.31 | 30.90 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
aphsh_shdata |
widget_recent-posts |
theysaidso_admin_options |
aphsh_options |
db_upgraded |
aphsh_notice |
widget_recent-comments |
aphsh_plugin_version |
Browser metrics Passed 4 tests
A check of browser resources used by APH Syntax Highlighter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.59 ▼0.78 | 1.53 ▼0.28 | 42.20 ▼1.27 |
Dashboard /wp-admin | 2,217 ▲29 | 4.89 ▼1.11 | 111.43 ▲9.63 | 39.06 ▼1.07 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.02 ▼0.00 | 41.31 ▲1.24 | 36.34 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,532 ▼4 | 23.16 ▼0.14 | 626.86 ▼30.54 | 55.25 ▼6.55 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.23 ▲0.04 | 102.81 ▼3.79 | 41.95 ▼4.29 |
Syntax Highlighter /wp-admin/options-general.php?page=aph-syntax-highlighter | 1,224 | 1.85 | 26.93 | 31.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aph-syntax-highlighter
- > Deprecated in wp-content/plugins/aph-syntax-highlighter/includes/aphsh-admin.php+463
join(): Passing glue string after array is deprecated. Swap the parameters
- > GET request to /wp-admin/options-general.php?page=aph-syntax-highlighter
- > Notice in wp-content/plugins/aph-syntax-highlighter/includes/aphsh-admin.php+512
Undefined index: options
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 items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/aph-syntax-highlighter/includes/aphsh-config.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/aph-syntax-highlighter/aph-syntax-highlighter.php:12
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/aph-syntax-highlighter/includes/aphsh-config.php on line 12
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aph-syntax-highlighter/includes/aphsh-config.php on line 13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aph-syntax-highlighter/includes/aphsh-config.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: syntax highlighter, syntax, highlighter
aph-syntax-highlighter/aph-syntax-highlighter.php 92% from 13 tests
The primary PHP file in "APH Syntax Highlighter" version 1.2.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 249 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected14,228 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 2,702 | 5,312 | 10,295 |
CSS | 14 | 47 | 20 | 2,866 |
PHP | 8 | 127 | 101 | 959 |
JSON | 1 | 0 | 0 | 96 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.32% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/img/aphsh-button.png | 0.82KB | 0.66KB | ▼ 19.81% |