78% remove-revision-dummy-content-wp

Code Review | Remove Revision Dummy Content WP

WordPress plugin Remove Revision Dummy Content WP scored78%from 54 tests.

About plugin

  • Plugin page: remove-revision-d...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 2, 2022
  • Latest release: May 30, 2023
  • Number of updates: 13
  • Update frequency: every 35.0 days
  • Top authors: satishnavjivan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.12MB] [CPU: ▼14.73ms] Passed 4 tests

A check of server-side resources used by Remove Revision Dummy Content WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.09 ▼1.07
Dashboard /wp-admin3.25 ▼0.0635.46 ▼14.77
Posts /wp-admin/edit.php3.32 ▼0.0438.69 ▼14.35
Add New Post /wp-admin/post-new.php5.49 ▼0.4075.39 ▼28.52
Media Library /wp-admin/upload.php3.26 ▲0.0232.01 ▼1.29
RRH Revision list /wp-admin/options-general.php?page=rrdcw-options-revision_list3.2330.30
RRH Size of Table /wp-admin/options-general.php?page=rrdcw-options3.2333.85
RRH Dummy list /wp-admin/options-general.php?page=rrdcw-options-dummy_list3.2330.71

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Remove Revision Dummy Content WP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.51 ▲0.351.83 ▲0.0340.65 ▼3.56
Dashboard /wp-admin2,207 ▲305.51 ▼0.0987.51 ▲1.9739.28 ▼0.59
Posts /wp-admin/edit.php2,115 ▲151.96 ▼0.0039.71 ▼2.6335.64 ▼4.65
Add New Post /wp-admin/post-new.php1,535 ▼023.05 ▲4.91637.74 ▲20.1847.86 ▼27.17
Media Library /wp-admin/upload.php1,412 ▲124.23 ▼0.04102.15 ▼0.3642.96 ▼3.68
RRH Revision list /wp-admin/options-general.php?page=rrdcw-options-revision_list8171.9922.8528.01
RRH Size of Table /wp-admin/options-general.php?page=rrdcw-options7852.0225.6027.12
RRH Dummy list /wp-admin/options-general.php?page=rrdcw-options-dummy_list7982.0223.7728.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rrdcw-options-dummy_list
    • > Warning in wp-content/plugins/remove-revision-dummy-content-wp/remove-revision-dummy-content-wp.php+37
    session_start(): Cannot start session when headers already sent

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-revision-dummy-content-wp/remove-revision-dummy-content-wp.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 (Remove Revision Dummy Content WP list of row) image missing
You can look at the official readme.txt

remove-revision-dummy-content-wp/remove-revision-dummy-content-wp.php Passed 13 tests

Analyzing the main PHP file in "Remove Revision Dummy Content WP" version 1.1.0
81 characters long description:
Remove revision history wp table term_relationships,postmeta,term_taxonomy,posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin252 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13117252

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png17.90KB5.59KB▼ 68.79%
screenshot-2.png12.92KB5.85KB▼ 54.72%