83% optimization-tools-itnyou

Code Review | Optimization Tools | ItnYou

WordPress plugin Optimization Tools | ItnYou scored83%from 54 tests.

About plugin

  • Plugin page: optimization-tool...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2018
  • Latest release: Dec 28, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: 1vshv1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /526 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Optimization Tools | ItnYou
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.09 ▲2.87
Dashboard /wp-admin3.33 ▼0.0250.87 ▼10.20
Posts /wp-admin/edit.php3.38 ▲0.0246.84 ▼1.88
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.36 ▼19.03
Media Library /wp-admin/upload.php3.25 ▲0.0238.90 ▲2.99
Optimization Tools /wp-admin/options-general.php?page=itnyou-toolset3.2236.27

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Optimization Tools | ItnYou
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲5813.25 ▼1.342.04 ▲0.0343.91 ▼1.14
Dashboard /wp-admin2,228 ▲256.05 ▲1.1998.98 ▼21.3038.11 ▼8.23
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.0739.61 ▼0.5332.29 ▼5.56
Add New Post /wp-admin/post-new.php1,534 ▲223.48 ▲0.38621.95 ▼44.9965.67 ▼11.13
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.07107.36 ▲0.7045.02 ▼1.87
Optimization Tools /wp-admin/options-general.php?page=itnyou-toolset8712.0823.8727.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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)
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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/optimization-tools-itnyou/itnyou.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ItnYou_plugin_name() in wp-content/plugins/optimization-tools-itnyou/template-parts/settings-form.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Screenshot_1.png)
The official readme.txt is a good inspiration

optimization-tools-itnyou/itnyou.php 85% from 13 tests

The primary PHP file in "Optimization Tools | ItnYou" version 0.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 311 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("optimization-tools-itnyou.php" instead of "itnyou.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin144 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2237144

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin