Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.30ms] Passed 4 tests
This is a short check of server-side resources used by SCFA (Shortcodes for Font Awesome)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 38.71 ▼4.72 |
Dashboard /wp-admin | 3.45 ▲0.14 | 50.93 ▼0.01 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 54.35 ▲6.67 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 95.18 ▼3.14 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.01 ▲7.02 |
SCFA [ ] /wp-admin/options-general.php?page=shortcodes-for-font-awesome | 3.34 | 32.20 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SCFA (Shortcodes for Font Awesome)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲59 | 14.72 ▲0.37 | 1.70 ▼0.41 | 40.79 ▼3.72 |
Dashboard /wp-admin | 2,209 ▲29 | 5.61 ▼0.03 | 90.42 ▼8.44 | 43.78 ▲0.87 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 1.96 ▲0.01 | 39.64 ▼0.26 | 38.75 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.43 ▲0.38 | 613.58 ▼50.49 | 59.89 ▲9.39 |
Media Library /wp-admin/upload.php | 1,417 ▲23 | 4.19 ▲0.00 | 96.40 ▲0.99 | 44.04 ▲1.73 |
SCFA [ ] /wp-admin/options-general.php?page=shortcodes-for-font-awesome | 884 | 2.01 | 26.07 | 34.02 |
Uninstaller [IO: ▲1.30MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsZombie WordPress options were found after uninstall: 6 options
- The plugin did not uninstall successfully, leaving 39 files (1.30MB) in the plugin directory
- (new file) README.txt
- (new file) css/fontawesome/fontawesome.min.css
- (new file) css/fontawesome/solid.min.css
- (new file) css/fontawesome/regular.min.css
- (new file) css/fontawesome/brands.min.css
- (new file) css/fontawesome/LICENSE.txt
- (new file) LICENSE.txt
- (new file) css/fontawesome/index.php
- (new file) css/fontawesome/all.min.css
- (new file) css/fontawesome/scfa-admin.css
- ...
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: webfont, font awesome, fontawesome, font, icon
shortcodes-for-font-awesome/scfa.php 92% from 13 tests
The entry point to "SCFA (Shortcodes for Font Awesome)" version 1.4.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shortcodes-for-font-awesome.php" instead of "scfa.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 plugin835 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 261 | 610 |
PO File | 1 | 42 | 47 | 143 |
CSS | 10 | 4 | 48 | 42 |
JavaScript | 1 | 7 | 30 | 40 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 109.00 |
▷ Minimum class complexity | 109.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 6.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 2 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo/scfa_logo.png | 26.50KB | 15.37KB | ▼ 42.03% |
img/webbplatsen_logo.png | 9.32KB | 5.62KB | ▼ 39.71% |