89% webtonative

Code Review | webtonative

WordPress plugin webtonative scored89%from 54 tests.

About plugin

  • Plugin page: webtonative
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2023
  • Latest release: Nov 21, 2023
  • Number of updates: 14
  • Update frequency: every 19.3 days
  • Top authors: webtonative (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /489 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.51MB] [CPU: ▼15.47ms] Passed 4 tests

This is a short check of server-side resources used by webtonative
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1640.37 ▼2.53
Dashboard /wp-admin3.47 ▲0.1746.46 ▼4.25
Posts /wp-admin/edit.php3.58 ▲0.2348.71 ▲2.69
Add New Post /wp-admin/post-new.php3.34 ▼2.5534.95 ▼56.47
Media Library /wp-admin/upload.php3.39 ▲0.1635.11 ▲1.39

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for webtonative
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲10714.37 ▼0.341.97 ▲0.2543.53 ▼2.59
Dashboard /wp-admin2,259 ▲855.56 ▼0.1396.33 ▼6.6237.24 ▼4.36
Posts /wp-admin/edit.php2,163 ▲632.01 ▲0.0738.71 ▲1.2332.68 ▼3.43
Add New Post /wp-admin/post-new.php1,539 ▲1223.42 ▲0.30668.65 ▲49.8159.78 ▲13.43
Media Library /wp-admin/upload.php1,466 ▲694.19 ▼0.0497.09 ▼3.6040.23 ▼3.51

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

webtonative/index.php 92% from 13 tests

"webtonative" version 1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webtonative.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,161 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP812633828
CSS335233
JavaScript31660
Markdown119040

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity30.00
▷ Minimum class complexity7.00
▷ Maximum class complexity60.00
Average method complexity5.83
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods1136.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
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
No PNG images were found in this plugin