10% publisher-profile

Code Review | Publisher Profile

WordPress plugin Publisher Profile scored10%from 54 tests.

About plugin

  • Plugin page: publisher-profile
  • Plugin version: 1.0.17
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2016
  • Latest release: May 10, 2016
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: bi0xid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /618 total downloads


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
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/publisher-profile/publisher-profile.php+70
    Function create_function() is deprecated

Server metrics [RAM: ▼1.93MB] [CPU: ▼60.58ms] Passed 4 tests

Server-side resources used by Publisher Profile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.12 ▼45.51
Dashboard /wp-admin2.08 ▼1.224.25 ▼47.26
Posts /wp-admin/edit.php2.09 ▼1.275.24 ▼50.19
Add New Post /wp-admin/post-new.php2.08 ▼3.815.49 ▼99.35
Media Library /wp-admin/upload.php2.08 ▼1.155.17 ▼33.34

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Publisher Profile
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.381.72 ▼0.0749.80 ▲7.15
Dashboard /wp-admin2,200 ▲155.84 ▼0.03109.26 ▲1.5541.12 ▼0.90
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0336.32 ▼5.4632.48 ▼6.80
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▲0.17631.05 ▼120.7452.55 ▼6.94
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.00101.80 ▼15.9042.68 ▼3.42

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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/publisher-profile/publisher-profile.php+70
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/publisher-profile/publisher-profile.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: role, publisher, profile

publisher-profile/publisher-profile.php Passed 13 tests

The main file in "Publisher Profile" v. 1.0.17 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Adds a publisher profile that can only publish, without editing permissions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected91 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin