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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼5.07ms] Passed 4 tests
Server-side resources used by TS Webfonts for Standard Plan
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.37 | 45.17 ▼0.72 |
Dashboard /wp-admin | 4.24 ▲0.86 | 58.99 ▼4.08 |
Posts /wp-admin/edit.php | 3.76 ▲0.36 | 53.61 ▲1.19 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.30 | 86.78 ▼16.68 |
Media Library /wp-admin/upload.php | 3.57 ▲0.30 | 43.47 ▲4.86 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
TS Webfonts for Standard Plan: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,030 ▲259 | 13.49 ▼0.86 | 8.56 ▲6.76 | 40.94 ▲0.41 |
Dashboard /wp-admin | 2,328 ▲151 | 5.66 ▲0.00 | 81.08 ▼6.07 | 76.14 ▲36.26 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 1.99 ▲0.04 | 35.63 ▼6.86 | 39.34 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,545 ▲16 | 23.19 ▼0.45 | 686.41 ▼4.91 | 64.07 ▼0.56 |
Media Library /wp-admin/upload.php | 1,419 ▲25 | 4.20 ▲0.03 | 110.93 ▼10.66 | 48.19 ▼0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/ts-webfonts-for-standard-plan/inc/class/class.fonttheme.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TypeSquare_Admin_Base' not found in wp-content/plugins/ts-webfonts-for-standard-plan/inc/admin-root.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/ts-webfonts-for-standard-plan/inc/class/class.fonttheme.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/ts-webfonts-for-standard-plan/inc/class/class.fonttheme.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ts-webfonts-for-standard-plan/inc/class/class.fonttheme.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/ts-webfonts-for-standard-plan/inc/class/class.fonttheme.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ts-webfonts-for-standard-plan/inc/admin-dashboard.php:16
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/ts-webfonts-for-standard-plan/inc/class/class.api.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/ts-webfonts-for-standard-plan/inc/class/class.api.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/ts-webfonts-for-standard-plan/inc/class/class.fonttheme.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: fonts, webfonts
ts-webfonts-for-standard-plan/typesquare.php 77% from 13 tests
"TS Webfonts for Standard Plan" version 3.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ts-webfonts-for-standard-plan.php" instead of "typesquare.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,462 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 202 | 74 | 1,736 |
CSS | 2 | 156 | 20 | 1,069 |
JavaScript | 2 | 98 | 71 | 546 |
JSON | 1 | 0 | 0 | 111 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 15 | 15.31% |
▷ Public methods | 65 | 66.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 33 | 33.67% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected