90% mpp-featured-content

Code Review | MediaPress Featured Content

WordPress plugin MediaPress Featured Content scored90%from 54 tests.

About plugin

  • Plugin page: mpp-featured-content
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: May 2, 2018
  • Latest release: Aug 7, 2023
  • Number of updates: 5
  • Update frequency: every 384.6 days
  • Top authors: raviousprime (80%)sbrajesh (40%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by MediaPress Featured Content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.22 ▼5.33
Dashboard /wp-admin3.32 ▼0.0247.61 ▼16.87
Posts /wp-admin/edit.php3.37 ▲0.0250.16 ▲3.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.24 ▼4.37
Media Library /wp-admin/upload.php3.25 ▲0.0236.19 ▼0.42

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for MediaPress Featured Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.29 ▼0.241.72 ▲0.1043.31 ▲4.19
Dashboard /wp-admin2,192 ▲155.62 ▲0.08111.65 ▲24.0041.54 ▲4.77
Posts /wp-admin/edit.php2,100 ▲212.03 ▲0.0538.85 ▲2.6934.13 ▼1.15
Add New Post /wp-admin/post-new.php1,526 ▼023.39 ▲0.11660.19 ▼32.1351.00 ▼5.45
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0194.21 ▲1.1340.19 ▼3.50

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: buddypress, mediapress, user-featured-gallery, buddypress-gallery

mpp-featured-content/mpp-featured-content.php Passed 13 tests

The main file in "MediaPress Featured Content" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
43 characters long description:
Let user feature their media and galleries.

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
Good job! No executable or dangerous file extensions detected1,396 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP164205291,227
PO File15068116
JavaScript15329
CSS10024

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.12
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods41
▷ Static methods12.44%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected