100% add-tinymce-blockquote-cite

Code Review | Add TinyMCE Blockquote Cite

WordPress plugin Add TinyMCE Blockquote Cite scored 100% from 54 tests.

About plugin

  • Plugin page: add-tinymce-block...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 5.9.2
  • First release: Aug 15, 2018
  • Latest release: Aug 15, 2018
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: cyberian90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 813 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Add TinyMCE Blockquote Cite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.31 ▲4.55
Dashboard /wp-admin3.41 ▲0.0134.38 ▲1.05
Posts /wp-admin/edit.php3.65 ▲0.0136.79 ▼1.89
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.12 ▼1,196.40
Media Library /wp-admin/upload.php3.30 ▲0.0123.73 ▲0.05

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Add TinyMCE Blockquote Cite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲516.26 ▲0.635.68 ▼0.242.71 ▼0.22
Dashboard /wp-admin2,888 ▲276.08 ▼0.02117.02 ▼18.50151.74 ▼9.92
Posts /wp-admin/edit.php2,688 ▼03.25 ▲0.0263.50 ▲0.36137.01 ▼7.21
Add New Post /wp-admin/post-new.php1,668 ▲718.12 ▲1.72395.78 ▼29.32153.73 ▼3.17
Media Library /wp-admin/upload.php1,701 ▲35.53 ▲0.02137.51 ▼12.90178.90 ▼7.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: tinymce, bartzik webdesign, add tinymce blockquote cite, cite, blockquote...

add-tinymce-blockquote-cite/add-tinymce-blockquote-cite.php Passed 13 tests

The primary PHP file in "Add TinyMCE Blockquote Cite" version 1.0.0 is used by WordPress to initiate all plugin functionality
52 characters long description:
A plugin that adds cite attribute feature to TinyMCE

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
Success! There were no dangerous files found in this plugin85 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript110464
PHP152921

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.25MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png38.29KB25.85KB▼ 32.49%
screenshot-2.png89.38KB53.32KB▼ 40.34%
screenshot-1.png38.29KB25.85KB▼ 32.49%
assets/screenshot-2.png89.38KB53.32KB▼ 40.34%