79% wp-front-admin

Code Review | WP Front Admin

WordPress plugin WP Front Admin scored79%from 54 tests.

About plugin

  • Plugin page: wp-front-admin
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.4
  • WordPress version: 6.3.1
  • First release: May 18, 2017
  • Latest release: May 18, 2017
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: hwk-fr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /827 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.03ms] Passed 4 tests

Analyzing server-side resources used by WP Front Admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.23 ▼3.04
Dashboard /wp-admin3.32 ▲0.0146.10 ▼10.66
Posts /wp-admin/edit.php3.37 ▲0.0146.34 ▼4.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.41 ▼14.16
Media Library /wp-admin/upload.php3.24 ▲0.0137.83 ▼1.07

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Front Admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.72 ▲0.371.68 ▲0.0942.03 ▼4.53
Dashboard /wp-admin2,195 ▲155.63 ▼0.0286.87 ▼14.1244.16 ▼2.64
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0135.72 ▼0.3035.17 ▲1.91
Add New Post /wp-admin/post-new.php1,528 ▲222.95 ▼0.69667.60 ▼30.4363.48 ▼8.51
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.08106.97 ▼12.4647.02 ▼3.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-front-admin/wp-front-admin.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-front-admin/inc/hooks.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-front-admin/inc/ajax.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: meta, panel, front, post meta, post type...

wp-front-admin/wp-front-admin.php Passed 13 tests

"WP Front Admin" version 0.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Front-End Admin Panel for Posts, Pages & Custom Post Types Custom Fields

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected10,550 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS37337,349
SVG1002,671
PHP411836351
JavaScript1500179

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin