Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼157.76ms] Passed 4 tests
Server-side resources used by Typecase Web Fonts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.13 | 29.20 ▼17.09 |
Dashboard /wp-admin | 3.19 ▲0.12 | 48.05 ▼41.11 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 54.87 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 101.83 ▼571.91 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 38.80 ▼0.94 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Typecase Web Fonts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲84 | 15.87 ▲0.66 | 8.12 ▼7.49 | 56.10 ▼15.09 |
Dashboard /wp-admin | 2,979 ▲36 | 5.90 ▲0.01 | 174.07 ▼12.99 | 146.03 ▼9.59 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.59 ▼0.14 | 83.31 ▲7.26 | 98.58 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 18.55 ▲2.31 | 424.83 ▼21.15 | 127.71 ▲1.55 |
Media Library /wp-admin/upload.php | 1,770 ▼34 | 4.99 ▼0.04 | 148.31 ▼50.56 | 146.22 ▲16.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Edit your website's web fonts easily with Typecase.), #2 (Instantly search Google Web Fonts' selection of over 500 web fonts, all optimized for the web.), #3 (Take a peek at your beautiful fonts on the front-end of your website. Ahhh, so pretty.)
typecase/typecase.php Passed 13 tests
The primary PHP file in "Typecase Web Fonts" version 1.1.3 is used by WordPress to initiate all plugin functionality
74 characters long description:
A plugin that makes it dead simple to add custom webfonts to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,721 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 131 | 829 | 1,685 |
Sass | 3 | 274 | 1 | 1,366 |
PHP | 2 | 281 | 357 | 860 |
JavaScript | 4 | 221 | 62 | 543 |
SVG | 1 | 0 | 0 | 238 |
HTML | 1 | 9 | 0 | 24 |
Ruby | 1 | 6 | 13 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 30 | 90.91% |
▷ Protected methods | 2 | 6.06% |
▷ Private methods | 1 | 3.03% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 1.27MB with 0.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 61.79KB | 23.73KB | ▼ 61.59% |
screenshot-3.png | 782.21KB | 282.06KB | ▼ 63.94% |
images/logo_typecase.png | 2.49KB | 0.89KB | ▼ 64.27% |
images/circle_background.png | 2.58KB | 0.68KB | ▼ 73.53% |
images/logo_typecase_small.png | 2.66KB | 1.33KB | ▼ 49.89% |