10% manadmin

Code Review | Man Admin

WordPress plugin Man Admin scored10%from 54 tests.

About plugin

  • Plugin page: manadmin
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3
  • WordPress version: 6.3.1
  • First release: Sep 11, 2015
  • Latest release: Sep 21, 2015
  • Number of updates: 20
  • Update frequency: every 0.5 days
  • Top authors: acianfa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /713 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/manadmin/man-admin.php+14
    Undefined index: stop_record

Server metrics [RAM: ▼1.89MB] [CPU: ▼57.53ms] Passed 4 tests

An overview of server-side resources used by Man Admin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.77 ▼37.07
Dashboard /wp-admin2.11 ▼1.195.62 ▼46.92
Posts /wp-admin/edit.php2.11 ▼1.245.41 ▼43.67
Add New Post /wp-admin/post-new.php2.11 ▼3.776.17 ▼102.46
Media Library /wp-admin/upload.php2.11 ▼1.125.18 ▼33.89
Read /wp-admin/admin.php?page=manadmin2.115.53
Edit /wp-admin/admin.php?page=manadmin_edit2.115.73

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

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

Browser metrics Passed 4 tests

Man Admin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.26 ▼0.101.77 ▼0.0038.84 ▼2.69
Dashboard /wp-admin2,222 ▲455.56 ▼0.1097.34 ▲10.3043.57 ▲0.71
Posts /wp-admin/edit.php2,130 ▲301.99 ▼0.0539.81 ▼2.0535.72 ▼0.82
Add New Post /wp-admin/post-new.php1,559 ▲3318.32 ▼5.41662.71 ▼28.1563.06 ▲3.13
Media Library /wp-admin/upload.php1,421 ▲244.21 ▼0.05101.11 ▼4.2642.75 ▼3.79
Read /wp-admin/admin.php?page=manadmin7852.0027.8023.66
Edit /wp-admin/admin.php?page=manadmin_edit1,6376.56146.7142.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/manadmin/man-admin.php+14
    Undefined index: stop_record
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manadmin_edit
    • > Notice in wp-content/plugins/manadmin/class.manadmin-admin.php+126
    Undefined index: stop_record
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manadmin_edit
    • > Notice in wp-content/plugins/manadmin/man-admin.php+18
    Undefined index: start_record
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manadmin_edit
    • > Notice in wp-content/plugins/manadmin/views/edit-layout.php+85
    Undefined index: visited
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manadmin_edit
    • > Notice in wp-content/plugins/manadmin/class.manadmin-admin.php+118
    Trying to get property 'text' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manadmin_edit
    • > Notice in wp-content/plugins/manadmin/class.manadmin-admin.php+118
    Undefined index: old_version

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/manadmin/views/view-layout.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/manadmin/views/view-layout.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/manadmin/views/view-layout.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/manadmin/man-admin.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/manadmin/views/edit-layout.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: admin panel

manadmin/man-admin.php 92% from 13 tests

The primary PHP file in "Man Admin" version 0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("manadmin.php" instead of "man-admin.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 plugin470 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP56323300
JavaScript1273114
PO File1182354
Markdown1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1161.11%
▷ Protected methods00.00%
▷ Private methods738.89%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin