79% wp-getting-started

Code Review | WP Getting Started

WordPress plugin WP Getting Started scored79%from 54 tests.

About plugin

  • Plugin page: wp-getting-started
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2+
  • WordPress version: 6.3.1
  • First release: Nov 8, 2012
  • Latest release: Nov 10, 2012
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: Mike_Cowobo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,024 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.85MB] [CPU: ▼31.69ms] Passed 4 tests

A check of server-side resources used by WP Getting Started
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.44 ▲0.03
Dashboard /wp-admin3.10 ▼0.2425.92 ▼38.15
Posts /wp-admin/edit.php3.10 ▼0.2526.55 ▼17.12
Add New Post /wp-admin/post-new.php3.10 ▼2.7826.42 ▼65.27
Media Library /wp-admin/upload.php3.10 ▼0.1226.74 ▼6.22

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Getting Started
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,750 ▲413.32 ▼0.931.70 ▲0.0233.59 ▼10.44
Dashboard /wp-admin2,159 ▼295.82 ▼0.07108.20 ▲0.0680.51 ▲38.93
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0534.27 ▼2.3534.69 ▼1.00
Add New Post /wp-admin/post-new.php1,533 ▲1923.09 ▲5.51691.72 ▲13.5654.22 ▼4.60
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.13108.12 ▲6.8748.24 ▲2.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wp-getting-started/wp-getting-started.php+249
    Undefined index: wpgs_action
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Tested up to: Version format is invalid
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-getting-started === )
The official readme.txt is a good inspiration

wp-getting-started/wp-getting-started.php Passed 13 tests

The main PHP file in "WP Getting Started" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Replace WordPress' Welcome Panel with a simple but effective walkthrough

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
Everything looks great! No dangerous files found in this plugin480 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2132246434
CSS12046

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity31.00
▷ Minimum class complexity14.00
▷ Maximum class complexity48.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods13.23%
▷ Public methods2374.19%
▷ Protected methods722.58%
▷ Private methods13.23%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_inc/images/pages_incomplete.png2.14KB0.90KB▼ 58.09%
_inc/images/change.png3.15KB1.75KB▼ 44.41%
_inc/images/arrow_right.png0.54KB0.34KB▼ 37.57%
_inc/images/arrow_right2.png0.50KB0.34KB▼ 32.42%
_inc/images/posts.png2.88KB1.45KB▼ 49.83%