84% vendi-tinymce-anchor

Code Review | Vendi TinyMCE Anchor

WordPress plugin Vendi TinyMCE Anchor scored84%from 54 tests.

About plugin

  • Plugin page: vendi-tinymce-anchor
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Jan 3, 2017
  • Latest release: May 6, 2022
  • Number of updates: 3
  • Update frequency: every 649.0 days
  • Top authors: chris@vendiadvertising.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Vendi TinyMCE Anchor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.85 ▼1.27
Dashboard /wp-admin3.31 ▲0.0147.82 ▼0.69
Posts /wp-admin/edit.php3.36 ▲0.0044.37 ▼0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.27 ▼10.82
Media Library /wp-admin/upload.php3.23 ▲0.0042.63 ▲9.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vendi TinyMCE Anchor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.71 ▲0.481.86 ▼0.1745.49 ▼0.72
Dashboard /wp-admin2,186 ▲95.54 ▼0.1289.74 ▼13.3438.40 ▼8.97
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0736.18 ▼4.5433.59 ▲0.40
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▲0.38693.06 ▲90.9667.55 ▼30.66
Media Library /wp-admin/upload.php1,397 ▼64.19 ▲0.03121.02 ▲13.8852.19 ▲6.82

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vendi-tinymce-anchor/vendi-tinymce-anchor.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: tinymce

vendi-tinymce-anchor/vendi-tinymce-anchor.php Passed 13 tests

This is the main PHP file of "Vendi TinyMCE Anchor" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
Adds TinyMCE's core anchor plugin back into WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected73 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2111058
PHP141115

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
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%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
There are no PNG files in this plugin