84% hardcore-google-fonts-localizer

Code Review | Hardcore Google Fonts Localizer

WordPress plugin Hardcore Google Fonts Localizer scored84%from 54 tests.

About plugin

  • Plugin page: hardcore-google-f...
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2018
  • Latest release: Oct 7, 2021
  • Number of updates: 7
  • Update frequency: every 155.9 days
  • Top authors: loremipsumgraz (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /5,671 total downloads

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: ▲1.43MB] [CPU: ▲5.37ms] Passed 4 tests

Analyzing server-side resources used by Hardcore Google Fonts Localizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.16 ▲0.70
Dashboard /wp-admin5.20 ▲1.8958.85 ▲5.56
Posts /wp-admin/edit.php5.25 ▲1.8957.98 ▲11.60
Add New Post /wp-admin/post-new.php7.78 ▲1.89104.29 ▲3.68
Media Library /wp-admin/upload.php5.12 ▲1.8948.61 ▲11.55
Hardcore Google Fonts Localizer /wp-admin/options-general.php?page=google_fonts_localizer_settings8.6374.44

Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 230 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Hardcore Google Fonts Localizer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.151.99 ▲0.1446.99 ▼2.00
Dashboard /wp-admin2,210 ▲194.83 ▼0.05103.11 ▼14.5737.57 ▼10.20
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0539.60 ▲4.2234.38 ▼2.98
Add New Post /wp-admin/post-new.php1,536 ▲823.46 ▲5.39671.70 ▲44.4269.39 ▲7.31
Media Library /wp-admin/upload.php1,395 ▲104.26 ▲0.03109.51 ▲2.6249.37 ▲3.24
Hardcore Google Fonts Localizer /wp-admin/options-general.php?page=google_fonts_localizer_settings1,0742.2031.3357.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 199× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/admin_page/_model/AdminPageFramework_ExportOptions.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_Link_Base' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/post_type/_controller/AdminPageFramework_Link_post_type.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_Form_View___CSS_Base' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/meta_box/form/_view/AdminPageFramework_Form_View___CSS_meta_box.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/admin_page/_view/AdminPageFramework_View__PageRenderer__InPageTabs.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/admin_page/_view/AdminPageFramework_View__PageRenderer__ScreenIcon.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_Property_Base' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/meta_box/_model/AdminPageFramework_Property_post_meta_box.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_Form' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/admin_page/form/AdminPageFramework_Form_admin_page.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_Form_View___Script_Base' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/_common/form/_view/script/AdminPageFramework_Form_View___Script_SectionTab.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/widget/AdminPageFramework_Widget_Factory.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_Form_View___Script_Base' not found in wp-content/plugins/hardcore-google-fonts-localizer/lib/apf/factory/_common/form/_view/script/AdminPageFramework_Form_View___Script_RegisterCallback.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: gdpr, local fonts

hardcore-google-fonts-localizer/google-fonts-localizer.php 85% from 13 tests

This is the main PHP file of "Hardcore Google Fonts Localizer" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hardcore-google-fonts-localizer.php" instead of "google-fonts-localizer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected16,897 lines of code in 223 files:
LanguageFilesBlank linesComment linesLines of code
PHP2186431,67516,045
PO File5371403852

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.17
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes327
▷ Abstract classes9328.44%
▷ Concrete classes23471.56%
▷ Final classes20.85%
Methods1,689
▷ Static methods25014.80%
▷ Public methods93955.60%
▷ Protected methods26715.81%
▷ Private methods48328.60%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants320.00%
▷ Class constants1280.00%
▷ Public constants12100.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 images were found in this plugin