90% pryc-wp-tinymce-more-buttons

Code Review | PRyC WP: TinyMCE more buttons

WordPress plugin PRyC WP: TinyMCE more buttons scored90%from 54 tests.

About plugin

  • Plugin page: pryc-wp-tinymce-m...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2015
  • Latest release: Jun 20, 2023
  • Number of updates: 19
  • Update frequency: every 148.8 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /13,278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by PRyC WP: TinyMCE more buttons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.51 ▲2.41
Dashboard /wp-admin3.31 ▲0.0142.95 ▼4.25
Posts /wp-admin/edit.php3.36 ▲0.0146.52 ▼4.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.36 ▼10.64
Media Library /wp-admin/upload.php3.24 ▲0.0134.94 ▲3.38

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for PRyC WP: TinyMCE more buttons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.31 ▼1.071.68 ▼0.1345.32 ▲6.24
Dashboard /wp-admin2,206 ▲184.87 ▼0.94111.71 ▼1.0938.76 ▼2.38
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.1240.60 ▼2.8333.65 ▼0.11
Add New Post /wp-admin/post-new.php1,514 ▼523.59 ▲0.47595.95 ▼85.0952.84 ▲2.20
Media Library /wp-admin/upload.php1,385 ▼64.14 ▼0.08106.06 ▲8.0942.61 ▼2.50

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wordpress, tinymce, editor, text edit

pryc-wp-tinymce-more-buttons/pryc-wp-tinymce-more-buttons.php 92% from 13 tests

"PRyC WP: TinyMCE more buttons" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101717

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.86
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected