84% new-user-tutorials

Code Review | New User Tutorials

WordPress plugin New User Tutorials scored84%from 54 tests.

About plugin

  • Plugin page: new-user-tutorials
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2016
  • Latest release: Apr 24, 2016
  • Number of updates: 4
  • Update frequency: every 4.5 days
  • Top authors: rockwell15 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.77ms] Passed 4 tests

Analyzing server-side resources used by New User Tutorials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0741.57 ▲4.04
Dashboard /wp-admin3.37 ▲0.0244.12 ▼17.65
Posts /wp-admin/edit.php3.42 ▲0.0647.15 ▼10.22
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.14 ▼14.38
Media Library /wp-admin/upload.php3.30 ▲0.0639.75 ▲3.18
NU Tutorials /wp-admin/edit.php?post_type=new-user-tutorial3.3436.31
Add New NU Tutorial /wp-admin/post-new.php?post_type=new-user-tutorial3.3545.23

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for New User Tutorials
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.22 ▼1.072.24 ▲0.4742.30 ▲2.01
Dashboard /wp-admin2,233 ▲424.86 ▼0.00110.26 ▲7.7041.07 ▼2.00
Posts /wp-admin/edit.php2,116 ▲272.01 ▼0.0340.13 ▲2.7235.75 ▲2.77
Add New Post /wp-admin/post-new.php1,556 ▲4223.26 ▲5.65676.97 ▼28.1555.48 ▲3.66
Media Library /wp-admin/upload.php1,418 ▲334.19 ▼0.00100.97 ▼12.8245.15 ▼3.16
NU Tutorials /wp-admin/edit.php?post_type=new-user-tutorial1,0862.0032.7729.15
Add New NU Tutorial /wp-admin/post-new.php?post_type=new-user-tutorial1,8254.1769.2937.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/new-user-tutorials/new-user-tutorials.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed: You can look at the official readme.txt

new-user-tutorials/new-user-tutorials.php Passed 13 tests

"New User Tutorials" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
Easy to create tutorials to guide your users through actions & on screen flows

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected472 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15328227
JavaScript28223188
CSS113357

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin