Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/advanced-font-changer/inc/classes/class_afcfonts.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; afcfonts has a deprecated constructor
Server metrics [RAM: ▼0.02MB] [CPU: ▼306.10ms] Passed 4 tests
Analyzing server-side resources used by Advanced Font Changer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 56.83 ▲0.27 |
Dashboard /wp-admin | 3.41 ▲0.00 | 38.75 ▼7.71 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 42.10 ▲0.94 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 93.92 ▼1,213.23 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 24.19 ▼3.72 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 56 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_afc_fonts |
New WordPress options |
---|
afc_db_vertion |
afc_general_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Font Changer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲36 | 15.65 ▲0.06 | 6.38 ▼0.21 | 2.67 ▲0.58 |
Dashboard /wp-admin | 2,878 ▲27 | 6.10 ▼0.07 | 114.18 ▼16.81 | 159.46 ▼5.08 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.25 ▼0.00 | 63.73 ▲0.42 | 140.43 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,668 ▲7 | 19.72 ▲3.66 | 423.95 ▲6.42 | 156.80 ▼0.42 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.44 ▼0.07 | 138.56 ▼9.03 | 183.53 ▼5.98 |
Uninstaller [IO: ▲2.33MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_afc_fonts
- Zombie WordPress options detected upon uninstall: 2 options
- afc_general_settings
- afc_db_vertion
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-font-changer/inc/admin/addexternalfont.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-font-changer/inc/admin/uploadfonts.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-font-changer/inc/admin/editselector.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-font-changer/inc/afc-ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-font-changer/inc/admin/editfont.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-font-changer/inc/admin/addselector.php:33
- > PHP Fatal error
Uncaught Error: Class 'AFC_WP_List_Table' not found in wp-content/plugins/advanced-font-changer/inc/classes/class_fontslist.php:6
- > PHP Fatal error
Uncaught Error: Class 'AFC_WP_List_Table' not found in wp-content/plugins/advanced-font-changer/inc/classes/class_selectorslist.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-font-changer/inc/admin/general.php:32
- > PHP Fatal error
Uncaught Error: Class 'afctables' not found in wp-content/plugins/advanced-font-changer/inc/classes/class_defaults.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Requires at least: Invalid version format
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Donate link: Invalid URI ("")
advanced-font-changer/advanced-font-changer.php Passed 13 tests
The primary PHP file in "Advanced Font Changer" version 1.5.5 is used by WordPress to initiate all plugin functionality
111 characters long description:
This plugin lets you visually change the font and other text properties in your theme, using its visual editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected16,324 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 378 | 470 | 5,403 |
SVG | 2 | 0 | 0 | 4,458 |
PHP | 22 | 499 | 1,113 | 4,186 |
JavaScript | 7 | 88 | 108 | 1,223 |
PO File | 2 | 405 | 487 | 1,054 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 42.90 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.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 | 118 | |
▷ Static methods | 1 | 0.85% |
▷ Public methods | 118 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 93 | |
▷ Named functions | 93 | 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
There are no PNG files in this plugin