84% add-autosave-fullscreen-to-tinymce

Code Review | Add AutoSave | Fullscreen to TinyMCE

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

About plugin

  • Plugin page: add-autosave-full...
  • Plugin version: 2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Aug 15, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 30
  • Update frequency: every 39.4 days
  • Top authors: ajtruckle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /928 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.62ms] Passed 4 tests

This is a short check of server-side resources used by Add AutoSave | Fullscreen to TinyMCE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.81 ▼3.47
Dashboard /wp-admin3.31 ▲0.0146.54 ▼4.00
Posts /wp-admin/edit.php3.37 ▲0.0046.35 ▼2.58
Add New Post /wp-admin/post-new.php5.90 ▲0.00100.98 ▲1.29
Media Library /wp-admin/upload.php3.24 ▲0.0033.80 ▼0.44

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Add AutoSave | Fullscreen to TinyMCE: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.28 ▼0.081.87 ▼0.0443.45 ▼0.88
Dashboard /wp-admin2,195 ▲155.49 ▼0.1687.81 ▼0.9239.39 ▲0.00
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0635.21 ▼9.2934.33 ▼2.24
Add New Post /wp-admin/post-new.php1,526 ▼022.91 ▼0.20593.17 ▼53.6157.99 ▲7.56
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0196.91 ▼5.7942.81 ▼0.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

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

"Add AutoSave | Fullscreen to TinyMCE" version 2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file 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 | 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 plugin9 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11137
JavaScript2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were 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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin