84% new-tab-actions-by-wasiwarez

Code Review | New Tab Actions by wasiwarez

WordPress plugin New Tab Actions by wasiwarez scored84%from 54 tests.

About plugin

  • Plugin page: new-tab-actions-b...
  • Plugin version: 1.0.15
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2020
  • Latest release: Nov 14, 2023
  • Number of updates: 48
  • Update frequency: every 25.7 days
  • Top authors: wasiwarez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,047 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: ▼7.19ms] Passed 4 tests

This is a short check of server-side resources used by New Tab Actions by wasiwarez
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.14 ▲0.67
Dashboard /wp-admin3.32 ▼0.0249.15 ▼17.91
Posts /wp-admin/edit.php3.38 ▲0.0244.90 ▼3.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.24 ▼5.43
Media Library /wp-admin/upload.php3.25 ▲0.0233.94 ▼1.59

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by New Tab Actions by wasiwarez
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.31 ▼0.001.56 ▼0.1042.73 ▼1.76
Dashboard /wp-admin2,195 ▲205.58 ▼0.1484.55 ▼21.8039.13 ▲0.51
Posts /wp-admin/edit.php2,108 ▲81.95 ▼0.0838.62 ▲2.4835.22 ▲5.03
Add New Post /wp-admin/post-new.php1,526 ▲11223.12 ▲5.29692.49 ▲60.1461.32 ▲18.57
Media Library /wp-admin/upload.php1,397 ▲34.21 ▲0.11100.59 ▲0.8741.26 ▼2.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/new-tab-actions-by-wasiwarez/new-tab-actions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: tab, view, new tab actions, row action, edit...

new-tab-actions-by-wasiwarez/new-tab-actions.php 85% from 13 tests

"New Tab Actions by wasiwarez" version 1.0.15'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:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("new-tab-actions-by-wasiwarez.php" instead of "new-tab-actions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin145 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File2263293
PHP141252

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin