93% manageview-your-posts-only

Code Review | Manage/View Your Posts Only

WordPress plugin Manage/View Your Posts Only scored 93% from 54 tests.

About plugin

  • Plugin page: manageview-your-p...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: May 31, 2014
  • Latest release: May 31, 2014
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: fearnowrath (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 7,896 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼169.30ms] Passed 4 tests

A check of server-side resources used by Manage/View Your Posts Only
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.79 ▲13.76
Dashboard /wp-admin3.06 ▲0.0144.52 ▼1.70
Posts /wp-admin/edit.php3.12 ▲0.0146.36 ▼0.16
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.86 ▼674.62
Media Library /wp-admin/upload.php3.01 ▲0.0135.00 ▼0.72

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Manage/View Your Posts Only
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲8215.96 ▲0.319.08 ▼1.2944.27 ▼0.24
Dashboard /wp-admin2,973 ▲405.91 ▼0.03139.27 ▼26.61100.86 ▼10.10
Posts /wp-admin/edit.php2,736 ▼32.71 ▼0.0168.39 ▲2.2975.42 ▼14.03
Add New Post /wp-admin/post-new.php1,594 ▲11718.80 ▲0.02378.65 ▼15.15103.28 ▼4.78
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.04155.76 ▼3.83115.71 ▲2.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/manageview-your-posts-only/manage_your_posts_only.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
  • Plugin Name: Please specify the plugin name on the first line ( === manageview-your-posts-only === )
  • Screenshots: Screenshot #1 (screenshot1.png) image required
The official readme.txt is a good inspiration

manageview-your-posts-only/manage_your_posts_only.php 85% from 13 tests

Analyzing the main PHP file in "Manage/View Your Posts Only" version 0.1
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 592 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("manageview-your-posts-only.php" instead of "manage_your_posts_only.php")

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
There were no executable files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131520

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png10.05KB5.80KB▼ 42.27%