10% easy-admin-page-master

Code Review | Easy Admin Page Master

WordPress plugin Easy Admin Page Master scored10%from 54 tests.

About plugin

  • Plugin page: easy-admin-page-m...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: Jun 17, 2022
  • Number of updates: 6
  • Update frequency: every 127.2 days
  • Top authors: aistechnolabspvtltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /377 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
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/easy-admin-page-master/easy-admin-page-master.php+17
    Undefined index: file

Server metrics [RAM: ▼1.97MB] [CPU: ▼56.43ms] Passed 4 tests

An overview of server-side resources used by Easy Admin Page Master
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.18 ▼35.42
Dashboard /wp-admin2.05 ▼1.305.20 ▼53.75
Posts /wp-admin/edit.php2.05 ▼1.315.85 ▼43.41
Add New Post /wp-admin/post-new.php2.05 ▼3.844.68 ▼93.13
Media Library /wp-admin/upload.php2.05 ▼1.186.07 ▼30.06

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Easy Admin Page Master
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.21 ▼1.171.77 ▲0.0038.82 ▼4.80
Dashboard /wp-admin2,234 ▲465.80 ▼0.08100.67 ▼7.3637.89 ▼5.45
Posts /wp-admin/edit.php2,117 ▲251.99 ▼0.0736.30 ▼5.5535.34 ▼1.02
Add New Post /wp-admin/post-new.php1,537 ▲2317.46 ▼0.05686.83 ▲18.7353.47 ▲1.48
Media Library /wp-admin/upload.php1,419 ▲284.28 ▲0.03107.78 ▼6.8748.58 ▼0.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/easy-admin-page-master/easy-admin-page-master.php+17
    Undefined index: file
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_file_name() in wp-content/plugins/easy-admin-page-master/easy-admin-page-master.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_file_name() in wp-content/plugins/easy-admin-page-master/examples/eapm-all-fields/page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_file_name() in wp-content/plugins/easy-admin-page-master/examples/eapm-page-with-tabs/page.php:8

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

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

"Easy Admin Page Master" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
66 characters long description:
A plugin to create easy way admin page and options for your plugin

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
Everything looks great! No dangerous files found in this plugin2,888 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP106901852,505
Markdown31040258
JavaScript323794
CSS27031

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity58.20
▷ Minimum class complexity2.00
▷ Maximum class complexity181.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods99
▷ Static methods2121.21%
▷ Public methods4646.46%
▷ Protected methods5050.51%
▷ Private methods33.03%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
examples/eapm-page-with-tabs/preview.png10.60KB5.22KB▼ 50.72%