Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/awesome-code-highlighting/index.php+13
require_once(wp-content/plugins/awesome-code-highlighting/customizer.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼12.27ms] Passed 4 tests
This is a short check of server-side resources used by Awesome Code Highlighting
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.77 ▼14.87 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.92 ▼22.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.72 ▲0.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.76 ▼11.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.52 ▲0.12 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Awesome Code Highlighting
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.15 ▼0.85 | 2.15 ▲0.44 | 44.59 ▲0.82 |
Dashboard /wp-admin | 2,221 ▲18 | 5.84 ▼0.06 | 101.87 ▼20.45 | 39.90 ▼3.34 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.01 | 39.49 ▲2.52 | 33.77 ▲2.94 |
Add New Post /wp-admin/post-new.php | 1,547 ▲4 | 23.15 ▲0.09 | 627.30 ▼9.53 | 45.47 ▼30.38 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▼0.09 | 106.49 ▼8.98 | 45.53 ▼3.71 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/awesome-code-highlighting/customizer.php' (include_path='.:/usr/share/php') in wp-content/plugins/awesome-code-highlighting/index.php on line 13
- > PHP Warning
require_once(wp-content/plugins/awesome-code-highlighting/customizer.php): failed to open stream: No such file or directory in wp-content/plugins/awesome-code-highlighting/index.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: code
awesome-code-highlighting/index.php 92% from 13 tests
The principal PHP file in "Awesome Code Highlighting" v. 0.0.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-code-highlighting.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected7,494 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 89 | 1,201 | 666 | 5,623 |
Markdown | 3 | 594 | 1 | 1,834 |
PHP | 1 | 7 | 10 | 31 |
JavaScript | 2 | 0 | 1 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/school-book.png | 0.47KB | 0.34KB | ▼ 27.37% |
styles/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |