77% quick-save

Code Review | Quick Save

WordPress plugin Quick Save scored77%from 54 tests.

About plugin

  • Plugin page: quick-save
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2015
  • Latest release: Jun 2, 2015
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: Steve Forster (75%)Otto42 (37.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /879 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Quick Save
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.30 ▼0.53
Dashboard /wp-admin3.32 ▲0.0149.35 ▼4.90
Posts /wp-admin/edit.php3.37 ▲0.0151.01 ▲3.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.56 ▼11.64
Media Library /wp-admin/upload.php3.24 ▲0.0139.52 ▼0.49
Quick Save Keycode /wp-admin/options-general.php?page=quick-save/wp-quicksave.php3.2131.86

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Quick Save
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.72 ▲0.361.78 ▼0.0938.95 ▼4.29
Dashboard /wp-admin2,204 ▲335.57 ▼0.0189.39 ▲5.7341.02 ▲1.68
Posts /wp-admin/edit.php2,107 ▲281.99 ▼0.0239.31 ▲0.5937.71 ▲3.19
Add New Post /wp-admin/post-new.php1,532 ▲623.26 ▲0.07692.99 ▼2.2157.90 ▲0.97
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0495.39 ▼22.7345.66 ▼6.43
Quick Save Keycode /wp-admin/options-general.php?page=quick-save/wp-quicksave.php8042.1723.5036.06

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-save/wp-quicksave.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=quick-save/wp-quicksave.php
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=quick-save%2Fwp-quicksave.php 172:68 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Screenshot #1 (You can press the ALT key to update the post or page.) image not found
  • Donate link: Please fix this invalid URI: "Give it to charity."
You can look at the official readme.txt

quick-save/wp-quicksave.php 85% from 13 tests

The entry point to "Quick Save" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quick-save.php" instead of "wp-quicksave.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)

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 plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161331

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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%
Functions3
▷ Named functions3100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
pro.png29.99KB9.24KB▼ 69.18%