78% post-access-overview

Code Review | Post Access Overview

WordPress plugin Post Access Overview scored78%from 54 tests.

About plugin

  • Plugin page: post-access-overview
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Apr 1, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: zaantar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /754 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.15ms] Passed 4 tests

This is a short check of server-side resources used by Post Access Overview
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.70 ▼0.79
Dashboard /wp-admin3.34 ▼0.0142.69 ▼19.17
Posts /wp-admin/edit.php3.39 ▲0.0346.98 ▲1.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.74 ▼13.62
Media Library /wp-admin/upload.php3.26 ▲0.0333.57 ▲0.99
Post Access Overview /wp-admin/users.php?page=post-access-overview3.3132.58

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
recovery_mode_email_last_sent
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Post Access Overview
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.12 ▼1.631.80 ▼0.1045.80 ▲5.72
Dashboard /wp-admin2,210 ▲255.80 ▲0.9593.67 ▼18.6739.09 ▼19.76
Posts /wp-admin/edit.php2,090 ▼22.05 ▲0.0134.20 ▼6.3836.26 ▼2.64
Add New Post /wp-admin/post-new.php1,545 ▲2618.17 ▼4.97625.31 ▲27.6856.40 ▲4.67
Media Library /wp-admin/upload.php1,389 ▲14.16 ▼0.0598.17 ▲1.1043.17 ▼1.97
Post Access Overview /wp-admin/users.php?page=post-access-overview7771.536.5822.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/users.php?page=post-access-overview
    • > Error in wp-content/plugins/post-access-overview/post-access-overview.php+243
    Uncaught Error: Class 'UserAccessManager' not found in wp-content/plugins/post-access-overview/post-access-overview.php:243
    Stack trace:
    #0 wp-admin/includes/class-wp-list-table.php(1752): PostAccessOverview\PostAccessTable->column_default()
    #1 wp-admin/includes/class-wp-list-table.php(1690): WP_List_Table->single_row_columns()
    #2 wp-admin/includes/class-wp-list-table.php(1677): WP_List_Table->single_row()
    #3 wp-admin/includes/class-wp-list-table.php(1662): WP_List_Table->display_rows()
    #4 wp-admin/includes/class-wp-list-table.php(1589): WP_List_Table->display_rows_or_placeholder()
    #5 wp-content/plugins/post-access-overview/post-access-overview.php(96): WP_List_Table->display()
    #6 wp-content/plugins/post-access-overview/post-access-overview.php(80): PostAccessOverview\show_default_page()
    #7 wp-includes/class-wp-hook.php(310): PostAccessOverv

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-access-overview/post-access-overview.php on line 41
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/post-access-overview/post-access-overview.php on line 41
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-access-overview/post-access-overview.php on line 41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: logging, log

post-access-overview/post-access-overview.php 92% from 13 tests

This is the main PHP file of "Post Access Overview" version 1..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin162 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17551160
CSS1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
There were not PNG files found in your plugin