Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▲5.81ms] Passed 4 tests
A check of server-side resources used by Simple Fonts Loader
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 43.17 ▲1.03 |
Dashboard /wp-admin | 3.69 ▲0.39 | 55.37 ▲9.82 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 58.56 ▲11.85 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 92.60 ▲3.43 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 46.72 ▲8.94 |
Polices d'écritures /wp-admin/themes.php?page=simple-fonts-loader-settings | 3.73 | 48.42 |
Server storage [IO: ▲16.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 372 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Fonts Loader
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲17 | 14.43 ▲0.16 | 1.52 ▼0.40 | 36.67 ▼8.52 |
Dashboard /wp-admin | 2,205 ▲25 | 5.71 ▲0.06 | 95.10 ▼2.39 | 40.44 ▼2.00 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.06 ▲0.12 | 41.14 ▲6.86 | 35.40 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.19 ▼0.11 | 701.20 ▼16.11 | 62.12 ▼4.99 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.27 ▲0.03 | 98.27 ▼6.30 | 41.95 ▼1.56 |
Polices d'écritures /wp-admin/themes.php?page=simple-fonts-loader-settings | 8,640 | 1.99 | 36.04 | 66.49 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: simple, font-face, google, loader, font...
simple-fonts-loader/simple-fonts-loader.php Passed 13 tests
Analyzing the main PHP file in "Simple Fonts Loader" version 1.7.8
51 characters long description:
Just enable some fonts from Google Fonts on 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
There were no executable files found in this plugin1,073 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 120 | 116 | 473 |
CSS | 1 | 46 | 1 | 275 |
JSON | 26 | 0 | 0 | 236 |
JavaScript | 2 | 15 | 9 | 89 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 15 | 46.88% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin