84% own-post-media-for-authors

Code Review | PBP own post, media & comments for Author

WordPress plugin PBP own post, media & comments for Author scored84%from 54 tests.

About plugin

  • Plugin page: own-post-media-fo...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Jul 31, 2013
  • Latest release: Apr 25, 2015
  • Number of updates: 21
  • Update frequency: every 30.1 days
  • Top authors: projoktibangla (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,325 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.00MB] [CPU: ▼15.26ms] Passed 4 tests

This is a short check of server-side resources used by PBP own post, media & comments for Author
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.96 ▼13.04
Dashboard /wp-admin3.27 ▼0.0837.09 ▼27.73
Posts /wp-admin/edit.php3.38 ▲0.0347.90 ▼2.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.00 ▼15.17
Media Library /wp-admin/upload.php3.26 ▲0.0332.69 ▼5.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by PBP own post, media & comments for Author
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.27 ▼0.021.59 ▼0.3138.07 ▼6.85
Dashboard /wp-admin2,198 ▲185.62 ▲0.0697.04 ▼2.1643.34 ▼5.33
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0139.33 ▲3.5035.07 ▼2.27
Add New Post /wp-admin/post-new.php1,528 ▲222.92 ▼0.24649.55 ▲3.9155.78 ▲1.87
Media Library /wp-admin/upload.php1,397 ▼64.22 ▲0.02102.57 ▲0.1041.53 ▼4.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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× 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/own-post-media-for-authors/post.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
7 plugin tags: post, own, author, role, comments...

own-post-media-for-authors/post.php 92% from 13 tests

The main file in "PBP own post, media & comments for Author" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("own-post-media-for-authors.php" instead of "post.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11230133

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.72
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin