74% entrywizard

Code Review | EntryWizard

WordPress plugin EntryWizard scored74%from 54 tests.

About plugin

  • Plugin page: entrywizard
  • Plugin version: 1.3.26
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Aug 2, 2013
  • Latest release: Aug 17, 2023
  • Number of updates: 186
  • Update frequency: every 19.7 days
  • Top authors: joanne123 (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

100+ active /9,345 total downloads

Benchmarks

Plugin footprint 65% 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.17MB] [CPU: ▼4.95ms] Passed 4 tests

Server-side resources used by EntryWizard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.83 ▲1.76
Dashboard /wp-admin3.48 ▲0.1446.64 ▼19.26
Posts /wp-admin/edit.php3.60 ▲0.2549.38 ▲0.16
Add New Post /wp-admin/post-new.php6.11 ▲0.22108.82 ▲6.38
Media Library /wp-admin/upload.php3.41 ▲0.1836.81 ▼2.45
WebForms /wp-admin/admin.php?page=entrywizard3.4748.83
EWZ Help /wp-admin/admin.php?page=ewzhelp3.4149.78
Permissions /wp-admin/admin.php?page=ewzperms3.4140.26
EWZ Settings /wp-admin/admin.php?page=ewzsettings3.3842.46
Layouts /wp-admin/admin.php?page=ewzlayouts3.4440.13

Server storage [IO: ▲2.12MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 93 new files
Database: 4 new tables, 7 new options
New tables
wp_ewz_item
wp_ewz_webform
wp_ewz_layout
wp_ewz_field
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
ewz_data_version
theysaidso_admin_options
can_compress_scripts

Browser metrics 75% from 4 tests

EntryWizard: an overview of browser usage
It is time to focus on the following
  • Nodes: Limit the number of DOM nodes under 25,000 (currently 25,113 on /wp-admin/admin.php?page=ewzlayouts)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.22 ▼1.011.82 ▼0.0841.94 ▼1.66
Dashboard /wp-admin2,247 ▲625.84 ▼0.0298.66 ▼5.3273.92 ▲27.16
Posts /wp-admin/edit.php2,135 ▲431.97 ▼0.1940.97 ▼1.6235.30 ▼2.81
Add New Post /wp-admin/post-new.php1,559 ▲1723.26 ▲5.06733.49 ▲54.8252.10 ▼2.21
Media Library /wp-admin/upload.php1,432 ▲444.20 ▼0.0197.79 ▼13.9575.65 ▲28.60
WebForms /wp-admin/admin.php?page=entrywizard5,7462.5346.4432.10
EWZ Help /wp-admin/admin.php?page=ewzhelp3,1832.1234.49115.86
Permissions /wp-admin/admin.php?page=ewzperms1,2512.0526.8932.70
EWZ Settings /wp-admin/admin.php?page=ewzsettings1,1742.0525.8631.33
Layouts /wp-admin/admin.php?page=ewzlayouts25,1132.8260.7335.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/entrywizard/uninstall.php+15
    Constant EWZ_LAYOUT_TABLE already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > EWZ
      Attempt to uninstall without WP_UNINSTALL_PLUGIN defined

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: photography, competition, upload, image, spreadsheet...

entrywizard/entrywizard.php 92% from 13 tests

The entry point to "EntryWizard" version 1.3.26 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 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
Success! There were no dangerous files found in this plugin19,359 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP381,7723,87012,625
JavaScript117653855,463
CSS4107491,271

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity48.27
▷ Minimum class complexity1.00
▷ Maximum class complexity305.00
Average method complexity5.48
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes27.69%
▷ Concrete classes2492.31%
▷ Final classes00.00%
Methods274
▷ Static methods13047.45%
▷ Public methods20072.99%
▷ Protected methods5319.34%
▷ Private methods217.66%
Functions162
▷ Named functions13885.19%
▷ Anonymous functions2414.81%
Constants47
▷ Global constants2961.70%
▷ Class constants1838.30%
▷ Public constants18100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
27 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
styles/images/ui-icons_309bbf_256x240.png5.23KB4.11KB▼ 21.49%
styles/images/ui-bg_flat_0_888888_40x100.png0.17KB0.08KB▼ 51.40%
styles/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
styles/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
images/switch.png0.53KB0.64KB0.00%