78% wp-admintools

Code Review | WP AdminTools

WordPress plugin WP AdminTools scored78%from 54 tests.

About plugin

  • Plugin page: wp-admintools
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1.1
  • WordPress version: 6.3.1
  • First release: May 14, 2012
  • Latest release: Apr 17, 2015
  • Number of updates: 46
  • Update frequency: every 23.4 days
  • Top authors: seibel (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /12,240 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.40MB] [CPU: ▼21.46ms] Passed 4 tests

A check of server-side resources used by WP AdminTools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2640.64 ▲1.62
Dashboard /wp-admin3.62 ▲0.2849.53 ▼9.99
Posts /wp-admin/edit.php3.72 ▲0.3644.61 ▼6.60
Add New Post /wp-admin/post-new.php3.42 ▼2.4634.80 ▼70.87
Media Library /wp-admin/upload.php3.56 ▲0.3334.96 ▲2.88
WP-AdminTools /wp-admin/options-general.php?page=sisat-options3.4629.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
sisat_version
widget_recent-posts
sisat_settings
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP AdminTools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲12313.14 ▼1.671.77 ▲0.1141.19 ▲0.36
Dashboard /wp-admin2,278 ▲875.86 ▼0.02102.18 ▼5.6838.52 ▼5.82
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0434.95 ▼6.4734.40 ▼5.65
Add New Post /wp-admin/post-new.php6,355 ▲4,83626.06 ▲2.87938.23 ▲298.6264.62 ▲7.35
Media Library /wp-admin/upload.php1,389 ▲74.22 ▲0.04100.57 ▼0.7340.45 ▼5.70
WP-AdminTools /wp-admin/options-general.php?page=sisat-options1,2602.0826.6444.16

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=sisat-options
    • > Notice in wp-content/plugins/wp-admintools/wp-admintools.php+505
    Undefined index: updated

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-admintools/wp-admintools.php:16

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Interface for writing/editing posts or pages), #2 (General settings), #3 (SEO settings), #4 (Clean up settings), #5 (Database settings), #6 (Dashboard view)
You can take inspiration from this readme.txt

wp-admintools/wp-admintools.php 92% from 13 tests

This is the main PHP file of "WP AdminTools" version 1.3.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,253 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP286171,201
PO File3379796955
JavaScript20152
CSS1162345

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 files were detected