84% web-tools

Code Review | Web Tools

WordPress plugin Web Tools scored84%from 54 tests.

About plugin

  • Plugin page: web-tools
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Apr 27, 2021
  • Latest release: Dec 26, 2021
  • Number of updates: 3
  • Update frequency: every 81.0 days
  • Top authors: rohitnishad527527 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▲4.43ms] Passed 4 tests

A check of server-side resources used by Web Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.32 ▲3.58
Dashboard /wp-admin3.37 ▲0.0650.79 ▼0.04
Posts /wp-admin/edit.php3.40 ▲0.0452.34 ▲3.53
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.53 ▲10.65
Media Library /wp-admin/upload.php3.29 ▲0.0643.82 ▲13.20
All Web Tools /wp-admin/edit.php?post_type=web_tools3.3142.90
Add New /wp-admin/post-new.php?post_type=web_tools3.4449.49

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Web Tools
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9814.47 ▲0.071.91 ▼0.2141.30 ▼7.63
Dashboard /wp-admin2,230 ▲426.00 ▲0.1695.34 ▼21.8236.93 ▼5.78
Posts /wp-admin/edit.php2,116 ▲302.03 ▼0.1039.81 ▲2.8535.17 ▲1.14
Add New Post /wp-admin/post-new.php1,556 ▲2323.39 ▲0.08605.75 ▼52.2848.58 ▼8.19
Media Library /wp-admin/upload.php1,415 ▲304.23 ▲0.04100.77 ▲3.3442.23 ▲0.38
All Web Tools /wp-admin/edit.php?post_type=web_tools1,0802.0032.0329.57
Add New /wp-admin/post-new.php?post_type=web_tools2,4317.84186.7676.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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

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
The following issues need your attention
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/web-tools/uninstall.php
    • > /wp-content/plugins/web-tools/custom-fields.php
    • > /wp-content/plugins/web-tools/register-ctp.php
    • > /wp-content/plugins/web-tools/set-single-template.php
    • > /wp-content/plugins/web-tools/web-tools.php
    • > /wp-content/plugins/web-tools/admin-view.php

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 97% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (This Home screen of Web Tools Plugins), #2 (This Settings screen of Web Tools Plugins)
You can take inspiration from this readme.txt

web-tools/web-tools.php Passed 13 tests

The principal PHP file in "Web Tools" v. 1.1 is loaded by WordPress automatically on each request
88 characters long description:
Create tools website such as calculator, generator, converter, etc. easily in WordPress.

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 plugin374 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP89247374

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
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