94% add-autosave-fullscreen-to-tinymce

Code Review | Add AutoSave | Fullscreen to TinyMCE

WordPress plugin Add AutoSave | Fullscreen to TinyMCE scored 94% from 54 tests.

About plugin

  • Plugin page: add-autosave-full...
  • Plugin version: 1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 5.9.2
  • First release: Aug 15, 2020
  • Latest release: Jan 26, 2022
  • Number of updates: 17
  • Update frequency: every 31.1 days
  • Top authors: ajtruckle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 429 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Add AutoSave | Fullscreen to TinyMCE
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0157.45 ▼1.81
Dashboard /wp-admin3.41 ▲0.0133.43 ▼1.33
Posts /wp-admin/edit.php3.65 ▲0.0150.07 ▲8.81
Add New Post /wp-admin/post-new.php6.88 ▼0.08108.38 ▼1,170.75
Media Library /wp-admin/upload.php3.30 ▲0.0031.64 ▲5.80

Server storage [IO: ▲0.01MB] [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, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add AutoSave | Fullscreen to TinyMCE
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.25 ▲0.217.08 ▲0.462.66 ▲0.30
Dashboard /wp-admin2,889 ▲355.99 ▼0.20124.22 ▼29.17162.27 ▼11.18
Posts /wp-admin/edit.php2,691 ▼03.22 ▼0.0180.83 ▲14.36170.96 ▲23.89
Add New Post /wp-admin/post-new.php1,717 ▲5621.34 ▲0.94462.44 ▲68.02165.67 ▲4.20
Media Library /wp-admin/upload.php1,698 ▼05.53 ▼0.02161.02 ▲13.00188.91 ▼4.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 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/add-autosave-fullscreen-to-tinymce/trucklesoft-autosave-fullscreen-tinymce.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

add-autosave-fullscreen-to-tinymce/trucklesoft-autosave-fullscreen-tinymce.php 92% from 13 tests

The primary PHP file in "Add AutoSave | Fullscreen to TinyMCE" version 1.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("add-autosave-fullscreen-to-tinymce.php" instead of "trucklesoft-autosave-fullscreen-tinymce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin9 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11137
JavaScript2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin