90% extended-wp-reset

Code Review | Extended WP Reset

WordPress plugin Extended WP Reset scored90%from 54 tests.

About plugin

  • Plugin page: extended-wp-reset
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.8
  • WordPress version: 6.3.1
  • First release: Jun 23, 2017
  • Latest release: Jun 28, 2017
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: wp.kytten (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,868 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.35ms] Passed 4 tests

An overview of server-side resources used by Extended WP Reset
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.49 ▼5.37
Dashboard /wp-admin3.37 ▲0.0650.32 ▲2.29
Posts /wp-admin/edit.php3.48 ▲0.1246.82 ▼2.03
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.06 ▼4.29
Media Library /wp-admin/upload.php3.29 ▲0.0636.09 ▲3.18

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

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

Browser metrics Passed 4 tests

Extended WP Reset: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.47 ▼0.321.71 ▼0.4444.22 ▲1.60
Dashboard /wp-admin2,219 ▲345.77 ▲0.7398.82 ▼19.2840.07 ▼3.40
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0540.36 ▲2.5534.22 ▲1.06
Add New Post /wp-admin/post-new.php1,560 ▲4018.12 ▼5.21621.16 ▼27.1450.82 ▼17.48
Media Library /wp-admin/upload.php1,401 ▲164.20 ▲0.00100.06 ▼11.1842.80 ▼2.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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wp reset, reset wordpress database, wordpress reset, clean wp, default wp

extended-wp-reset/extended-wp-reset.php 92% from 13 tests

Analyzing the main PHP file in "Extended WP Reset" version 1.0.2
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 567 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected403 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP257116379
JavaScript10019
Markdown1305

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.46
Average class complexity68.00
▷ Minimum class complexity68.00
▷ Maximum class complexity68.00
Average method complexity5.79
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
PNG images were not found in this plugin