84% update-from-bottom

Code Review | Update from Bottom

WordPress plugin Update from Bottom scored84%from 54 tests.

About plugin

  • Plugin page: update-from-bottom
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 10, 2014
  • Latest release: Sep 27, 2016
  • Number of updates: 20
  • Update frequency: every 39.0 days
  • Top authors: urre (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /4,440 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
Installer ran successfully

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

This is a short check of server-side resources used by Update from Bottom
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.29 ▲4.43
Dashboard /wp-admin3.32 ▲0.0153.97 ▲6.02
Posts /wp-admin/edit.php3.37 ▲0.0152.78 ▲1.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.65 ▲0.52
Media Library /wp-admin/upload.php3.24 ▲0.0133.92 ▼1.15

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Update from Bottom
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼1.051.82 ▼0.5443.32 ▼3.96
Dashboard /wp-admin2,209 ▲215.85 ▼0.05112.03 ▲7.6344.28 ▲3.36
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0340.51 ▲0.0434.67 ▼4.10
Add New Post /wp-admin/post-new.php1,533 ▲1123.17 ▼0.10681.42 ▲25.9770.33 ▲21.00
Media Library /wp-admin/upload.php1,382 ▼94.29 ▲0.0195.97 ▼8.1446.34 ▼0.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/update-from-bottom/update-from-bottom.php:102
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/update-from-bottom/trunk/update-from-bottom.php:102

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Update from Bottom)
You can take inspiration from this readme.txt

update-from-bottom/update-from-bottom.php 92% from 13 tests

"Update from Bottom" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)

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
There were no executable files found in this plugin199 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File2468256
JavaScript116650
PHP1302945
CSS13025
Markdown111023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.05KB2.99KB▼ 50.56%
trunk/screenshot-1.png6.05KB2.99KB▼ 50.56%