10% eewee-admincustom

Code Review | eewee admin custom

WordPress plugin eewee admin custom scored 10% from 54 tests.

About plugin

  • Plugin page: eewee-admincustom
  • Plugin version: 1.8.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Apr 20, 2013
  • Latest release: Sep 5, 2014
  • Number of updates: 53
  • Update frequency: every 9.5 days
  • Top authors: eewee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,094 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/eewee-admincustom/controllers/BreadcrumbController.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; BreadcrumbController has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼53.83ms] Passed 4 tests

This is a short check of server-side resources used by eewee admin custom
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.306.43 ▼41.23
Dashboard /wp-admin2.18 ▼1.128.33 ▼38.95
Posts /wp-admin/edit.php2.19 ▼1.176.57 ▼44.11
Add New Post /wp-admin/post-new.php2.18 ▼3.707.35 ▼91.01
Media Library /wp-admin/upload.php2.18 ▼1.049.18 ▼21.69
Breadcrumb /wp-admin/admin.php?page=idSousMenuAC62.187.94
Admin Bar /wp-admin/admin.php?page=idSousMenuAC42.187.16
Dashboard /wp-admin/admin.php?page=idSousMenuAC22.187.87
Help Tab /wp-admin/admin.php?page=idSousMenuAC32.187.01
Admin Custom /wp-admin/admin.php?page=idAdminCustom2.1810.55
General /wp-admin/admin.php?page=idSousMenuAC12.186.80
Role /wp-admin/admin.php?page=idSousMenuAC52.188.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for eewee admin custom
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲12014.47 ▼0.172.03 ▼0.1041.90 ▼3.16
Dashboard /wp-admin2,257 ▲695.88 ▲0.99102.94 ▼0.8882.51 ▲37.89
Posts /wp-admin/edit.php2,137 ▲482.01 ▼0.0135.63 ▼6.7534.20 ▼1.85
Add New Post /wp-admin/post-new.php1,706 ▲16421.34 ▲3.07704.18 ▲86.6261.41 ▲11.97
Media Library /wp-admin/upload.php1,433 ▲484.17 ▼0.00101.95 ▼0.0863.62 ▲20.45
Breadcrumb /wp-admin/admin.php?page=idSousMenuAC68822.0626.8427.99
Admin Bar /wp-admin/admin.php?page=idSousMenuAC48402.0626.9427.18
Dashboard /wp-admin/admin.php?page=idSousMenuAC21,0672.0824.6628.57
Help Tab /wp-admin/admin.php?page=idSousMenuAC38582.0225.9825.52
Admin Custom /wp-admin/admin.php?page=idAdminCustom1,0262.0235.1338.89
General /wp-admin/admin.php?page=idSousMenuAC19852.0425.0429.62
Role /wp-admin/admin.php?page=idSousMenuAC59102.0124.4426.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/eewee-admincustom/controllers/BreadcrumbController.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; BreadcrumbController has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=idSousMenuAC5
    • > Deprecated in wp-content/plugins/eewee-admincustom/controllers/BreadcrumbController.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; BreadcrumbController has a deprecated constructor
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=idSousMenuAC5
    • > Deprecated in wp-content/plugins/eewee-admincustom/controllers/AdminBarController.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; AdminBarController has a deprecated constructor

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/eewee-admincustom/view/manuel.php
    • > /wp-content/plugins/eewee-admincustom/view/roleDelete.php
  • 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant EEWEE_ADMINCUSTOM_PLUGIN_DIR - assumed 'EEWEE_ADMINCUSTOM_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/eewee-admincustom/view/generalRoot.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/eewee-admincustom/forms/FHelptabEdit.php:3
    • > PHP Warning
      include(EEWEE_ADMINCUSTOM_PLUGIN_DIR/view/dashboard.php): failed to open stream: No such file or directory in wp-content/plugins/eewee-admincustom/view/dashboardRoot.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/eewee-admincustom/view/adminbar.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/eewee-admincustom/forms/FRoleAdd.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/eewee-admincustom/forms/FRoleEdit.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/eewee-admincustom/forms/FDashboardEdit.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/eewee-admincustom/forms/FGeneralEdit.php:3
    • > PHP Warning
      Use of undefined constant TMenu - assumed 'TMenu' (this will throw an Error in a future version of PHP) in wp-content/plugins/eewee-admincustom/models/TGeneral.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/eewee-admincustom/forms/FAdminbarEdit.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
5 plugin tags: manager, admin, manage, logo, custom

eewee-admincustom/index.php 92% from 13 tests

The main PHP script in "eewee admin custom" version 1.8.2.4 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("eewee-admincustom.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,556 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP333965241,403
PO File1126281127
CSS151026

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.64
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods60
▷ Static methods11.67%
▷ Public methods60100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icones/logo.png0.75KB0.73KB▼ 2.46%
images/icones/download.png0.70KB0.79KB0.00%