99% abbreviation-button-for-tinymce

Code Review | Abbreviation button for TinyMCE

WordPress plugin Abbreviation button for TinyMCE scored 99% from 54 tests.

About plugin

  • Plugin page: abbreviation-butt...
  • Plugin version: 1.3.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 5.9.2
  • First release: Sep 29, 2016
  • Latest release: Aug 13, 2020
  • Number of updates: 43
  • Update frequency: every 32.9 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,814 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼289.30ms] Passed 4 tests

An overview of server-side resources used by Abbreviation button for TinyMCE
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0256.15 ▲5.13
Dashboard /wp-admin3.44 ▲0.0334.03 ▼0.05
Posts /wp-admin/edit.php3.66 ▲0.0237.47 ▲0.30
Add New Post /wp-admin/post-new.php6.91 ▼0.0695.90 ▼1,149.74
Media Library /wp-admin/upload.php3.31 ▲0.0124.43 ▼7.71

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Abbreviation button for TinyMCE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,799 ▲5515.85 ▲0.186.30 ▲0.362.63 ▲0.53
Dashboard /wp-admin2,896 ▲426.10 ▼0.14115.66 ▼20.98154.90 ▼5.22
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0061.08 ▲0.62139.16 ▼1.30
Add New Post /wp-admin/post-new.php1,661 ▼5816.46 ▼5.27416.18 ▲0.08153.56 ▼3.64
Media Library /wp-admin/upload.php1,698 ▼05.53 ▼0.03135.38 ▼10.68185.65 ▼3.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
Please take inspiration from this readme.txt

abbreviation-button-for-tinymce/tinymce-abbr.php 92% from 13 tests

The main PHP file in "Abbreviation button for TinyMCE" ver. 1.3.7 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("abbreviation-button-for-tinymce.php" instead of "tinymce-abbr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin170 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File1132453

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.31
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
5 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png5.16KB1.36KB▼ 73.58%
assets/screenshot-2.png58.77KB18.40KB▼ 68.69%
admin/js/images/abbr-icon.png2.98KB0.28KB▼ 90.73%
assets/screenshot-1.png53.80KB14.55KB▼ 72.96%
assets/banner-772x250.png15.61KB5.76KB▼ 63.09%