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.02MB] [CPU: ▼0.34ms] Passed 4 tests
Analyzing server-side resources used by NM Font Awesome
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.84 ▲0.41 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.96 ▼3.77 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.45 ▲0.33 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.57 ▲1.68 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 38.33 ▲5.89 |
Server storage [IO: ▲2.98MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NM Font Awesome
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 15.84 ▲1.26 | 14.40 ▲12.62 | 42.61 ▲4.66 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▲0.96 | 107.09 ▼2.39 | 39.86 ▼0.40 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.00 | 40.69 ▲4.48 | 36.60 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,520 ▼14 | 22.96 ▼0.14 | 653.88 ▼82.22 | 62.34 ▲4.92 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.21 ▼0.08 | 108.93 ▼0.35 | 49.10 ▲0.55 |
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
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/nm-font-awesome/includes/nm-font-awesome-shortcode.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant NM_FONTAWESOME_MSG - assumed 'NM_FONTAWESOME_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/nm-font-awesome/includes/nm-font-awesome-shortcode.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nm-font-awesome/nm-font-awesome.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nm-font-awesome/includes/nm-font-awesome-init.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: fontawesome, font, icon, font awesome, icons
nm-font-awesome/nm-font-awesome.php Passed 13 tests
The principal PHP file in "NM Font Awesome" v. 1.0.5 is loaded by WordPress automatically on each request
92 characters long description:
Wordpress plugin that adds the latest version 5 of Font Awesome into your WordPress project.
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
There were no executable files found in this plugin46,864 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 46,719 |
JavaScript | 2 | 7 | 4 | 62 |
PHP | 3 | 19 | 20 | 57 |
CSS | 1 | 0 | 0 | 26 |
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.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/background.png | 59.04KB | 30.30KB | ▼ 48.68% |
public/images/menu-icon.png | 1.78KB | 0.44KB | ▼ 75.43% |