84% webfonts2psoft-for-tinymce

Code Review | Wordpress TinyMCE Thai Webfonts Plugin(ปลั๊กอินเว็บฟอนต์ไทยสำหรับเวิร์ดเพลส)

WordPress plugin Wordpress TinyMCE Thai Webfonts Plugin(ปลั๊กอินเว็บฟอนต์ไทยสำหรับเวิร์ดเพลส) scored84%from 54 tests.

About plugin

  • Plugin page: webfonts2psoft-fo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Jul 22, 2017
  • Latest release: Jul 22, 2017
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: tirdtoon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /772 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.27MB] [CPU: ▼0.61ms] Passed 4 tests

A check of server-side resources used by Wordpress TinyMCE Thai Webfonts Plugin(ปลั๊กอินเว็บฟอนต์ไทยสำหรับเวิร์ดเพลส)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.33 ▲0.23
Dashboard /wp-admin3.31 ▲0.0141.46 ▼6.25
Posts /wp-admin/edit.php3.36 ▲0.0043.58 ▲0.32
Add New Post /wp-admin/post-new.php4.80 ▼1.08563.71 ▲464.61
Media Library /wp-admin/upload.php3.23 ▲0.0035.86 ▲3.27

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Wordpress TinyMCE Thai Webfonts Plugin(ปลั๊กอินเว็บฟอนต์ไทยสำหรับเวิร์ดเพลส): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.471.72 ▼0.0440.40 ▼1.37
Dashboard /wp-admin2,206 ▲155.86 ▲0.96101.95 ▼1.4538.59 ▼5.93
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0435.21 ▼3.0432.45 ▼1.18
Add New Post /wp-admin/post-new.php1,538 ▲823.47 ▲5.36656.25 ▲2.8762.79 ▲6.15
Media Library /wp-admin/upload.php1,391 ▼04.14 ▼0.0799.71 ▲3.4639.89 ▼3.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webfonts2psoft-for-tinymce/2psoftwebfonts_tinymce_wordpress.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
6 plugin tags: phuphansoft, tinymce, webfont, 2psoftcom, wordpress...

webfonts2psoft-for-tinymce/2psoftwebfonts_tinymce_wordpress.php 85% from 13 tests

Analyzing the main PHP file in "Wordpress TinyMCE Thai Webfonts Plugin(ปลั๊กอินเว็บฟอนต์ไทยสำหรับเวิร์ดเพลส)" version 1.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("webfonts2psoft-for-tinymce.php" instead of "2psoftwebfonts_tinymce_wordpress.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171241

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin