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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▼1.55ms] Passed 4 tests
This is a short check of server-side resources used by APH Prism Syntax Highlighter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.46 ▼1.09 |
Dashboard /wp-admin | 4.11 ▲0.81 | 50.38 ▼2.09 |
Posts /wp-admin/edit.php | 4.23 ▲0.87 | 53.05 ▲4.34 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 90.11 ▼7.35 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 39.32 ▲7.50 |
Prism Highlighter /wp-admin/options-general.php?page=aph-prism-highlighter | 3.98 | 34.16 |
Server storage [IO: ▲1.87MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 773 new files
Database: no new tables, 10 new options
New WordPress options |
---|
aphph_phdata |
aphph_notice |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
aphph_plugin_version |
aphph_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for APH Prism Syntax Highlighter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲12 | 14.26 ▼0.48 | 1.79 ▼0.34 | 42.55 ▼8.86 |
Dashboard /wp-admin | 2,207 ▲30 | 5.68 ▲0.03 | 86.59 ▼13.28 | 41.02 ▼4.87 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.02 ▼0.03 | 34.80 ▼0.40 | 33.55 ▼5.08 |
Add New Post /wp-admin/post-new.php | 1,861 ▲330 | 23.42 ▲0.34 | 595.06 ▼62.63 | 35.66 ▼14.99 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.21 ▼0.00 | 98.46 ▼2.16 | 40.97 ▼5.38 |
Prism Highlighter /wp-admin/options-general.php?page=aph-prism-highlighter | 2,714 | 1.80 | 27.02 | 33.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- 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
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=aph-prism-highlighter
- > Notice in wp-content/plugins/aph-prism-highlighter/includes/aphph-admin.php+512
Undefined index: options
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > 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-prism-highlighter/includes/aphph-config.php on line 13
- > 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-prism-highlighter/includes/aphph-config.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/aph-prism-highlighter/aph-prism-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-prism-highlighter/includes/aphph-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-prism-highlighter/includes/aphph-config.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: syntax, syntax highlighter, highlighter, prism
aph-prism-highlighter/aph-prism-highlighter.php 92% from 13 tests
This is the main PHP file of "APH Prism Syntax Highlighter" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 246 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin29,668 lines of code in 763 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 656 | 2,183 | 3,513 | 21,064 |
CSS | 50 | 249 | 158 | 2,495 |
HTML | 28 | 691 | 43 | 2,380 |
JSON | 2 | 0 | 0 | 1,896 |
PHP | 14 | 316 | 259 | 1,748 |
SVG | 13 | 0 | 0 | 85 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 26.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 94.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.97% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/img/aphph-button.png | 0.47KB | 0.51KB | 0.00% |