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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▲1.30ms] Passed 4 tests
An overview of server-side resources used by AH Code Highlighter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.93 ▼1.26 |
Dashboard /wp-admin | 3.35 ▲0.05 | 54.90 ▲3.46 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 53.86 ▲7.17 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 98.03 ▼3.66 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.89 ▲6.65 |
AH Code Highlighter /wp-admin/options-general.php?page=prism | 3.25 | 33.33 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for AH Code Highlighter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 16.92 ▲2.40 | 11.25 ▲9.54 | 38.63 ▼1.75 |
Dashboard /wp-admin | 2,208 ▲39 | 5.84 ▲0.16 | 100.28 ▼1.61 | 39.88 ▼3.25 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.41 ▲0.38 | 50.27 ▲13.66 | 34.82 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.42 ▲5.41 | 691.59 ▲35.06 | 37.48 ▼24.66 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.37 ▲0.22 | 110.95 ▲9.69 | 46.54 ▲0.78 |
AH Code Highlighter /wp-admin/options-general.php?page=prism | 924 | 2.05 | 36.95 | 29.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: prism, code, syntax highlighter, syntax highlighting, code highlighter...
ah-prism-syntax-highlighter/load-prism.php 92% from 13 tests
The entry point to "AH Code Highlighter" version 2.0.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ah-prism-syntax-highlighter.php" instead of "load-prism.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,818 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 451 | 119 | 2,491 |
PHP | 4 | 72 | 89 | 178 |
JavaScript | 2 | 34 | 14 | 149 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 1 | 11.11% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
Functions | 7 | |
▷ Named functions | 7 | 100.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