89% prominent-manager

Code Review | Prominent Manager

WordPress plugin Prominent Manager scored89%from 54 tests.

About plugin

  • Plugin page: prominent-manager
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2022
  • Latest release: Sep 28, 2023
  • Number of updates: 5
  • Update frequency: every 57.2 days
  • Top authors: hemelhasan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /154 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Prominent Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.35 ▼3.06
Dashboard /wp-admin3.32 ▲0.0146.48 ▼0.68
Posts /wp-admin/edit.php3.37 ▲0.0149.38 ▲5.09
Add New Post /wp-admin/post-new.php5.92 ▲0.03109.11 ▲9.56
Media Library /wp-admin/upload.php3.24 ▲0.0139.14 ▲6.68

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
pm_prominent_version
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
pm_prominent_installed
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Prominent Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼0.674.70 ▲2.8240.35 ▼4.86
Dashboard /wp-admin2,200 ▲185.82 ▲0.00105.89 ▼1.0341.25 ▲4.61
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0038.64 ▼3.0036.37 ▼2.02
Add New Post /wp-admin/post-new.php1,514 ▼2817.37 ▼1.17685.56 ▲42.7647.71 ▼3.67
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0595.73 ▼7.7845.07 ▼0.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • pm_prominent_installed
    • theysaidso_admin_options
    • pm_prominent_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Screenshot_1.png) image required
You can look at the official readme.txt

prominent-manager/prominent.php 77% from 13 tests

The main PHP file in "Prominent Manager" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 352 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("prominent-manager.php" instead of "prominent.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,709 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,1292,3613,704
JSON1005
JavaScript1100

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity60.45
▷ Minimum class complexity1.00
▷ Maximum class complexity551.00
Average method complexity7.11
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods108
▷ Static methods1917.59%
▷ Public methods10597.22%
▷ Protected methods00.00%
▷ Private methods32.78%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants68
▷ Global constants6798.53%
▷ Class constants11.47%
▷ 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
No PNG files were detected