89% easy-to-use

Code Review | Easy-to-use

WordPress plugin Easy-to-use scored89%from 54 tests.

About plugin

  • Plugin page: easy-to-use
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Jun 10, 2012
  • Latest release: Aug 3, 2020
  • Number of updates: 17
  • Update frequency: every 175.1 days
  • Top authors: webvitaly (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /2,710 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.81ms] Passed 4 tests

A check of server-side resources used by Easy-to-use
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.40 ▼2.21
Dashboard /wp-admin3.32 ▲0.0245.92 ▼1.69
Posts /wp-admin/edit.php3.37 ▲0.0147.48 ▼1.95
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.96 ▼5.38
Media Library /wp-admin/upload.php3.24 ▲0.0134.35 ▲2.28

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy-to-use
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4814.52 ▲0.131.72 ▼0.4340.20 ▼4.69
Dashboard /wp-admin2,210 ▲225.86 ▼0.01115.72 ▲1.9843.55 ▲0.05
Posts /wp-admin/edit.php2,096 ▲72.03 ▼0.0240.20 ▲1.7434.35 ▼1.71
Add New Post /wp-admin/post-new.php1,523 ▼523.50 ▲0.61608.39 ▼62.3455.45 ▼3.73
Media Library /wp-admin/upload.php1,389 ▲14.38 ▲0.1798.06 ▼3.9743.22 ▼1.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (login form before and after Easy-to-use plugin installation)
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

easy-to-use/easy-to-use.php Passed 13 tests

This is the main PHP file of "Easy-to-use" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Unmasks password inputs, enables 'remember-me' by default, sets login interval to 1 year.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin53 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS16527
PHP1161125
JavaScript1001

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.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.12KB6.12KB0.14%