67% wp-easy-guide

Code Review | WordPress Easy Guide

WordPress plugin WordPress Easy Guide scored67%from 54 tests.

About plugin

  • Plugin page: wp-easy-guide
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8+
  • WordPress version: 6.3.1
  • First release: Dec 4, 2018
  • Latest release: Dec 5, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: detheme (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

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

Server metrics [RAM: ▼0.65MB] [CPU: ▼13.47ms] Passed 4 tests

Analyzing server-side resources used by WordPress Easy Guide
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.50 ▼0.72
Dashboard /wp-admin3.35 ▲0.0548.46 ▲0.52
Posts /wp-admin/edit.php3.39 ▲0.0345.95 ▲1.39
Add New Post /wp-admin/post-new.php3.21 ▼2.6838.23 ▼53.43
Media Library /wp-admin/upload.php3.27 ▲0.0535.51 ▼0.25
Manages /wp-admin/admin.php?page=wpeg/manages3.2532.90
Getting started /wp-admin/admin.php?page=wpeg/about3.2734.44

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: 2 new tables, 7 new options
New tables
wp_wpeg_steps
wp_wpeg_guides
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
wpeg_db_version
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Easy Guide
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲12817.96 ▲3.401.72 ▲0.0839.06 ▼2.39
Dashboard /wp-admin2,295 ▲1157.90 ▲2.29145.33 ▲56.5184.39 ▲40.55
Posts /wp-admin/edit.php2,363 ▲2635.47 ▲3.5072.79 ▲37.3259.40 ▲24.20
Add New Post /wp-admin/post-new.php1,601 ▲7525.03 ▲1.27698.96 ▼2.8537.96 ▼19.57
Media Library /wp-admin/upload.php1,657 ▲2547.48 ▲3.31131.82 ▲26.0487.67 ▲40.58
Manages /wp-admin/admin.php?page=wpeg/manages1,0755.7684.5327.33
Getting started /wp-admin/admin.php?page=wpeg/about1,1455.4962.5244.35

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
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_wpeg_steps
    • wp_wpeg_guides
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • wpeg_db_version
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-easy-guide/views/manage.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-easy-guide/views/about.php:15

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)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tested up to: Version format is invalid
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

wp-easy-guide/wpeg.php 77% from 13 tests

Analyzing the main PHP file in "WordPress Easy Guide" version 1.0.0
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-easy-guide.php" instead of "wpeg.php")

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
Success! There were no dangerous files found in this plugin12,476 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,3221,50210,952
PHP102273591,056
CSS26421292
PO File17476160
SVG10116

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity23.75
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods37
▷ Static methods3697.30%
▷ Public methods2978.38%
▷ Protected methods00.00%
▷ Private methods821.62%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/hero-image.png34.14KB10.27KB▼ 69.91%
assets/img/logo-base.png15.98KB6.39KB▼ 60.04%
assets/img/logo-icon.png29.52KB8.67KB▼ 70.64%