89% wp-downgrade

Code Review | WP Downgrade | Specific Core Version

WordPress plugin WP Downgrade | Specific Core Version scored89%from 54 tests.

About plugin

  • Plugin page: wp-downgrade
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2016
  • Latest release: May 8, 2023
  • Number of updates: 61
  • Update frequency: every 42.1 days
  • Top authors: Reisetiger (100%)

Code review

54 tests

User reviews

162 reviews

Install metrics

100,000+ active /1,326,400 total downloads

Benchmarks

Plugin footprint 83% 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.05MB] [CPU: ▼2.49ms] Passed 4 tests

Analyzing server-side resources used by WP Downgrade | Specific Core Version
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.06 ▼2.65
Dashboard /wp-admin3.36 ▲0.0543.64 ▼6.21
Posts /wp-admin/edit.php3.41 ▲0.0547.19 ▲0.42
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.97 ▼0.15
Media Library /wp-admin/upload.php3.28 ▲0.0532.93 ▼0.96
WP Downgrade /wp-admin/options-general.php?page=wpdowngrade3.2545.37

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

WP Downgrade | Specific Core Version: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.10 ▼0.631.69 ▼0.0043.49 ▼5.56
Dashboard /wp-admin2,199 ▲195.55 ▼0.1284.13 ▼13.6138.59 ▼4.44
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0439.25 ▲2.2237.99 ▲4.13
Add New Post /wp-admin/post-new.php1,529 ▲323.08 ▼0.35646.77 ▼44.6053.81 ▲3.14
Media Library /wp-admin/upload.php1,401 ▲44.20 ▲0.0293.56 ▼10.9344.29 ▼1.39
WP Downgrade /wp-admin/options-general.php?page=wpdowngrade8442.0328.3430.04

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Release-Nummer hinterlegen), #2 (Downgrade auf hinterlegte WordPress-Version aktivieren), #3 (WordPress bietet eine ältere Version als Update an)
The official readme.txt might help

wp-downgrade/wp-downgrade.php 92% from 13 tests

The principal PHP file in "WP Downgrade | Specific Core Version" v. 1.2.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 416 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin322 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14223164
PO File24450158

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png39.98KB19.23KB▼ 51.91%
screenshot-1.png29.31KB14.36KB▼ 50.99%
screenshot-3.png14.13KB7.75KB▼ 45.17%