84% urvanov-richtext-addfmt

Code Review | Urvanov richtext addfmt

WordPress plugin Urvanov richtext addfmt scored84%from 54 tests.

About plugin

  • Plugin page: urvanov-richtext-...
  • Plugin version: 0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.3-6.0
  • WordPress version: 6.3.1
  • First release: Feb 16, 2019
  • Latest release: May 9, 2022
  • Number of updates: 10
  • Update frequency: every 118.0 days
  • Top authors: urvanov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,435 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Urvanov richtext addfmt
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.38 ▲0.50
Dashboard /wp-admin3.31 ▼0.0448.57 ▼15.71
Posts /wp-admin/edit.php3.37 ▲0.0054.84 ▲8.91
Add New Post /wp-admin/post-new.php5.89 ▼0.0095.60 ▼11.03
Media Library /wp-admin/upload.php3.24 ▲0.0038.97 ▲3.63

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Urvanov richtext addfmt: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.42 ▲0.191.60 ▼0.5242.44 ▼3.53
Dashboard /wp-admin2,192 ▲125.50 ▼0.1483.85 ▼5.2538.51 ▼3.05
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0040.18 ▼5.3434.65 ▼10.96
Add New Post /wp-admin/post-new.php1,685 ▲15921.86 ▼1.06636.02 ▼17.9849.02 ▼3.59
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.00105.89 ▲5.9947.50 ▲3.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/urvanov-richtext-addfmt/urvanov-richtext-addfmt.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
2 plugin tags: format, editor

urvanov-richtext-addfmt/urvanov-richtext-addfmt.php Passed 13 tests

"Urvanov richtext addfmt" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
59 characters long description:
Additional format buttons for richtext in Gutenberg editor.

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

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin