84% easy-admin

Code Review | Easy Admin

WordPress plugin Easy Admin scored84%from 54 tests.

About plugin

  • Plugin page: easy-admin
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: May 26, 2017
  • Latest release: Dec 19, 2019
  • Number of updates: 6
  • Update frequency: every 156.3 days
  • Top authors: vincentdubroeucq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,270 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.67ms] Passed 4 tests

An overview of server-side resources used by Easy Admin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.90 ▲5.53
Dashboard /wp-admin3.32 ▼0.0349.82 ▼15.67
Posts /wp-admin/edit.php3.37 ▲0.0143.11 ▼4.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.60 ▼15.96
Media Library /wp-admin/upload.php3.24 ▲0.0136.20 ▲1.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 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

An overview of browser requirements for Easy Admin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.28 ▼0.711.69 ▼0.0747.50 ▲3.07
Dashboard /wp-admin2,225 ▲374.85 ▼1.0098.86 ▼15.3739.04 ▼5.00
Posts /wp-admin/edit.php2,105 ▲161.97 ▼0.0433.33 ▼3.4432.69 ▼2.89
Add New Post /wp-admin/post-new.php1,546 ▲2722.84 ▼0.25673.73 ▲17.9453.85 ▼4.44
Media Library /wp-admin/upload.php1,407 ▲224.20 ▼0.01100.06 ▼3.0748.87 ▲4.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-admin/easy-admin.php

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: admin, dashboard, admin-area, admin menu

easy-admin/easy-admin.php Passed 13 tests

The main PHP file in "Easy Admin" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
This allows you to simply hide some admin menu items. Super simple.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin125 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1486191
PO File14626
Markdown1408

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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 functions9100.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
No PNG images were found in this plugin