74% simple-update

Code Review | Simple Update

WordPress plugin Simple Update scored74%from 54 tests.

About plugin

  • Plugin page: simple-update
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2016
  • Latest release: Jun 15, 2016
  • Number of updates: 24
  • Update frequency: every 3.1 days
  • Top authors: mariodabek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /524 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.96MB] [CPU: ▼38.90ms] Passed 4 tests

An overview of server-side resources used by Simple Update
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.44 ▼2.30
Dashboard /wp-admin3.00 ▼0.3521.83 ▼40.91
Posts /wp-admin/edit.php3.00 ▼0.3623.95 ▼22.28
Add New Post /wp-admin/post-new.php3.00 ▼2.8922.70 ▼80.48
Media Library /wp-admin/upload.php3.00 ▼0.2319.65 ▼11.91

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Update
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17313.78 ▼0.506.11 ▲4.2942.77 ▼0.91
Dashboard /wp-admin2,213 ▲254.91 ▲0.02109.25 ▼3.1839.07 ▼2.24
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0241.30 ▲6.0335.20 ▼0.37
Add New Post /wp-admin/post-new.php6,280 ▲4,75221.77 ▲3.35860.13 ▲230.7561.98 ▲8.99
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0495.91 ▼12.1739.94 ▼4.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'simple_update' does not have a method 'setup_menu'
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 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/simple-update/simple-update.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: edit, update, quick, editor

simple-update/simple-update.php Passed 13 tests

"Simple Update" version 0.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
A simpler way to update your page content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin245 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13611118
JavaScript210092
CSS11135

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.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.54MB with 0.36MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png552.90KB195.03KB▼ 64.73%
mce_button.png1.35KB0.42KB▼ 69.01%