84% gamipress-multimedia-content

Code Review | GamiPress - Multimedia Content

WordPress plugin GamiPress - Multimedia Content scored84%from 54 tests.

About plugin

  • Plugin page: gamipress-multime...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Dec 15, 2017
  • Latest release: Sep 4, 2023
  • Number of updates: 23
  • Update frequency: every 90.8 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /10,971 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.22ms] Passed 4 tests

This is a short check of server-side resources used by GamiPress - Multimedia Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.83 ▼2.28
Dashboard /wp-admin3.33 ▲0.0247.71 ▼2.85
Posts /wp-admin/edit.php3.38 ▲0.0249.64 ▼0.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.93 ▼11.65
Media Library /wp-admin/upload.php3.25 ▲0.0241.26 ▲0.09

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for GamiPress - Multimedia Content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.54 ▼0.651.77 ▼0.1642.68 ▼1.67
Dashboard /wp-admin2,223 ▲324.86 ▼0.07111.38 ▲11.1443.71 ▼3.93
Posts /wp-admin/edit.php2,106 ▲202.04 ▼0.1244.38 ▲3.2036.34 ▼2.10
Add New Post /wp-admin/post-new.php1,545 ▲323.45 ▲5.04611.40 ▼53.9756.34 ▼5.07
Media Library /wp-admin/upload.php1,408 ▲204.26 ▲0.05105.88 ▼6.8746.19 ▼4.91

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
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_action() in wp-content/plugins/gamipress-multimedia-content/gamipress-multimedia-content.php:204

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

gamipress-multimedia-content/gamipress-multimedia-content.php Passed 13 tests

The principal PHP file in "GamiPress - Multimedia Content" v. 1.0.3 is loaded by WordPress automatically on each request
75 characters long description:
Add activity triggers based on multimedia content creation and interaction.

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 detected382 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6129278319
JavaScript2191363

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected