Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼4.52ms] Passed 4 tests
A check of server-side resources used by TypeSquare Webfonts for エックスサーバー
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 39.64 ▲0.20 |
Dashboard /wp-admin | 3.64 ▲0.30 | 47.69 ▼9.35 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 46.41 ▲2.08 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 81.85 ▼10.67 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 37.68 ▲1.76 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for TypeSquare Webfonts for エックスサーバー
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲173 | 14.80 ▲0.60 | 52.94 ▲51.24 | 38.36 ▼2.89 |
Dashboard /wp-admin | 2,220 ▲40 | 5.60 ▼0.05 | 82.58 ▼6.97 | 40.21 ▲1.28 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 1.97 ▼0.04 | 33.33 ▼3.91 | 33.49 ▼4.59 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 23.65 ▲0.52 | 666.69 ▲14.07 | 53.43 ▲1.17 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.16 ▼0.13 | 101.74 ▲0.50 | 45.25 ▲0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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 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 take a closer look at the following
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/xserver-typesquare-webfonts/inc/class/class.fonttheme.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TypeSquare_Admin_Base' not found in wp-content/plugins/xserver-typesquare-webfonts/inc/admin-root.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/xserver-typesquare-webfonts/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/xserver-typesquare-webfonts/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/xserver-typesquare-webfonts/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/xserver-typesquare-webfonts/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/xserver-typesquare-webfonts/inc/class/class.fonttheme.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TypeSquare_Admin_Base' not found in wp-content/plugins/xserver-typesquare-webfonts/inc/admin-fonttheme.php: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/xserver-typesquare-webfonts/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/xserver-typesquare-webfonts/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 86% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: webfonts, fonts
xserver-typesquare-webfonts/ts-webfonts-for-xserver.php 69% from 13 tests
The main file in "TypeSquare Webfonts for エックスサーバー" v. 2.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("xserver-typesquare-webfonts.php" instead of "ts-webfonts-for-xserver.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,364 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 191 | 61 | 1,787 |
CSS | 3 | 158 | 20 | 1,079 |
JavaScript | 1 | 89 | 71 | 497 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.09 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 16 | 16.84% |
▷ Public methods | 68 | 71.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 28.42% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin