90% smntcs-adobe-typekit-fonts

Code Review | SMNTCS Adobe Typekit Fonts

WordPress plugin SMNTCS Adobe Typekit Fonts scored90%from 54 tests.

About plugin

  • Plugin page: smntcs-adobe-type...
  • Plugin version: 1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Sep 14, 2016
  • Latest release: Oct 15, 2023
  • Number of updates: 29
  • Update frequency: every 89.2 days
  • Top authors: nielslange (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.26ms] Passed 4 tests

Analyzing server-side resources used by SMNTCS Adobe Typekit Fonts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.08 ▲0.23
Dashboard /wp-admin3.32 ▲0.0145.89 ▼0.01
Posts /wp-admin/edit.php3.37 ▲0.0145.33 ▼0.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.05 ▼15.82
Media Library /wp-admin/upload.php3.25 ▲0.0131.75 ▼4.23

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SMNTCS Adobe Typekit Fonts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▲0.161.65 ▲0.1044.71 ▲3.83
Dashboard /wp-admin2,195 ▲155.52 ▼0.1382.61 ▼4.1535.83 ▼2.43
Posts /wp-admin/edit.php2,100 ▼02.13 ▲0.1334.17 ▼1.0732.69 ▼4.38
Add New Post /wp-admin/post-new.php1,527 ▲123.14 ▲0.17686.05 ▼33.0054.77 ▼1.72
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.0295.98 ▼7.5342.14 ▼3.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Screenshots: These screenshots require images: #2 (Open `Appearance` » `Customize`.), #3 (Provide your Adobe Typekit Fonts code.), #4 (Customize the CSS according to your needs.)
Please take inspiration from this readme.txt

smntcs-adobe-typekit-fonts/smntcs-adobe-typekit-fonts.php Passed 13 tests

The main PHP file in "SMNTCS Adobe Typekit Fonts" ver. 1.8 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
Adds Adobe Typekit Fonts to your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,224 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON3007,050
XML2161468
PHP1134462
Markdown123035
YAML1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin