83% wp-guidance-tutorial-for-beginners

Code Review | WP Guidance - Guideline/Tutorial for WordPress Beginners

WordPress plugin WP Guidance - Guideline/Tutorial for WordPress Beginners scored83%from 54 tests.

About plugin

  • Plugin page: wp-guidance-tutor...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: Oct 13, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: psdtowpservice (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /364 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.38ms] Passed 4 tests

An overview of server-side resources used by WP Guidance - Guideline/Tutorial for WordPress Beginners
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.91 ▼6.80
Dashboard /wp-admin3.34 ▲0.0444.31 ▼6.12
Posts /wp-admin/edit.php3.39 ▲0.0449.99 ▲1.18
Add New Post /wp-admin/post-new.php5.92 ▲0.04103.62 ▲6.22
Media Library /wp-admin/upload.php3.26 ▲0.0440.47 ▲7.40

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Guidance - Guideline/Tutorial for WordPress Beginners
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲7313.65 ▼0.871.64 ▼1.3741.67 ▼9.23
Dashboard /wp-admin2,236 ▲484.88 ▲0.01101.16 ▼12.2940.66 ▼7.10
Posts /wp-admin/edit.php2,103 ▲141.96 ▼0.0541.40 ▲5.5439.09 ▲2.72
Add New Post /wp-admin/post-new.php1,559 ▲2618.33 ▼4.87622.32 ▼58.5364.62 ▲10.15
Media Library /wp-admin/upload.php1,403 ▲154.27 ▲0.0398.41 ▼8.8841.94 ▼3.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-guidance-tutorial-for-beginners/wp-guidance.php:219

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

wp-guidance-tutorial-for-beginners/wp-guidance.php 85% from 13 tests

The principal PHP file in "WP Guidance - Guideline/Tutorial for WordPress Beginners" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-guidance-tutorial-for-beginners.php" instead of "wp-guidance.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 264 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected177 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1348177

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code1.05
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%
Functions1
▷ Named functions1100.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
No PNG files were detected