Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/advanced-font-changer/inc/classes/class_afcfonts.php+174
Uncaught Error: Call to undefined function mysql_real_escape_string() in wp-content/plugins/advanced-font-changer/inc/classes/class_afcfonts.php:174
Stack trace:
#0 wp-content/plugins/advanced-font-changer/inc/classes/class_afcfonts.php(21): afcfonts->updateFonts()
#1 wp-content/plugins/advanced-font-changer/inc/classes/class_defaults.php(81): afcfonts->addFonts()
#2 wp-content/plugins/advanced-font-changer/inc/classes/class_defaults.php(62): afcdefaults->add_default_fonts()
#3 wp-content/plugins/advanced-font-changer/inc/classes/class_defaults.php(17): afcdefaults->createTables()
#4 wp-content/plugins/advanced-font-changer/advanced-font-changer.php(91): afcdefaults->run()
#5 wp-includes/class-wp-hook.php(310): pg_afc_install()
#6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 wp-includes/plugin.php(517): WP_Hook->do_action(
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.02ms] Passed 4 tests
Analyzing server-side resources used by Advanced Font Changer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.79 ▼2.94 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.05 ▼1.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.62 ▲0.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.21 ▼16.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.27 ▲0.34 |
Server storage [IO: ▲1.47MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 56 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_afc_fonts |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
afc_general_settings |
theysaidso_admin_options |
afc_db_vertion |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Font Changer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.10 | 2.03 ▲0.32 | 44.16 ▲0.32 |
Dashboard /wp-admin | 2,198 ▲24 | 5.67 ▲0.00 | 91.94 ▲2.54 | 42.79 ▼2.90 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.06 ▲0.05 | 39.78 ▲1.59 | 35.22 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,545 ▲13 | 22.97 ▼0.39 | 680.76 ▲57.70 | 52.24 ▼6.69 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.25 ▲0.01 | 101.54 ▼4.02 | 45.33 ▲0.89 |
Uninstaller [IO: ▲2.33MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_afc_fonts
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- afc_general_settings
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- afc_db_vertion
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 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/import-export.php:32
- > 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: Call to undefined function add_action() in wp-content/plugins/advanced-font-changer/inc/admin/editselector.php:30
- > 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/uploadfonts.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
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: Call to undefined function add_action() in wp-content/plugins/advanced-font-changer/inc/admin/editfont.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Requires at least: Version not formatted correctly
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Donate link: Please fix this invalid url: "wp-src.ir/afc"
advanced-font-changer/advanced-font-changer.php Passed 13 tests
Analyzing the main PHP file in "Advanced Font Changer" version 1.5.5
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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin16,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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin