78% autocomplete-for-tinymce

Code Review | AutoComplete For TinyMCE

WordPress plugin AutoComplete For TinyMCE scored78%from 54 tests.

About plugin

  • Plugin page: autocomplete-for-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7
  • WordPress version: 6.3.1
  • First release: Nov 21, 2016
  • Latest release: Nov 21, 2016
  • Number of updates: 5
  • Update frequency: every 6.4 days
  • Top authors: prakhar19 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,103 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.03ms] Passed 4 tests

A check of server-side resources used by AutoComplete For TinyMCE
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.02 ▼8.52
Dashboard /wp-admin3.32 ▲0.0248.16 ▼1.99
Posts /wp-admin/edit.php3.37 ▲0.0250.73 ▲1.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.87 ▼12.12
Media Library /wp-admin/upload.php3.25 ▲0.0238.02 ▼1.47
Autocomplete /wp-admin/options-general.php?page=tinymce_autocomplete3.2134.84

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AutoComplete For TinyMCE
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1115.10 ▲0.701.58 ▼0.3445.15 ▲2.14
Dashboard /wp-admin2,200 ▲265.70 ▲0.1388.38 ▼2.7438.86 ▼2.12
Posts /wp-admin/edit.php2,111 ▲112.81 ▲0.8739.50 ▼1.7835.59 ▼7.60
Add New Post /wp-admin/post-new.php1,533 ▲723.92 ▲0.84681.54 ▼11.3737.48 ▼25.07
Media Library /wp-admin/upload.php1,405 ▲55.20 ▲0.97101.78 ▼13.2344.35 ▼5.98
Autocomplete /wp-admin/options-general.php?page=tinymce_autocomplete8202.7125.6331.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/autocomplete-for-tinymce/options_menu.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/autocomplete-for-tinymce/autocomplete-for-tinymce.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: "www.paypal.me/prakhar19"
The official readme.txt might help

autocomplete-for-tinymce/autocomplete-for-tinymce.php Passed 13 tests

The principal PHP file in "AutoComplete For TinyMCE" v. 1.0 is loaded by WordPress automatically on each request
50 characters long description:
AutoComplete support for Wordpress TinyMCE Editor.

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
Success! There were no dangerous files found in this plugin76 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP222773
JavaScript3003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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.57
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
plugin/image/automatic-flash-symbol.png0.79KB0.68KB▼ 14.23%