10% mpq-video-gallery-xmlrpc

Code Review | MPQ Video Gallery XMLRPC

WordPress plugin MPQ Video Gallery XMLRPC scored10%from 54 tests.

About plugin

  • Plugin page: mpq-video-gallery...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3.1
  • WordPress version: 6.3.1
  • First release: May 20, 2013
  • Latest release: May 20, 2013
  • Number of updates: 5
  • Update frequency: every 27.0 days
  • Top authors: zhouyibhic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /791 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/mpq-video-gallery-xmlrpc/mpqvideogllr_xmlrpc.php+27
    require_once(wp-content/plugins/mpqvideogallery-xmlrpc/mpqvideogllr_xmlrpc.php): failed to open stream: No such file or directory

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

Server-side resources used by MPQ Video Gallery XMLRPC
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.06 ▼3.18
Dashboard /wp-admin3.31 ▼0.0449.70 ▼12.59
Posts /wp-admin/edit.php3.36 ▲0.0049.96 ▼2.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.56 ▼20.18
Media Library /wp-admin/upload.php3.23 ▲0.0037.20 ▲6.81

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for MPQ Video Gallery XMLRPC
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.62 ▼0.962.03 ▼0.0242.80 ▼0.69
Dashboard /wp-admin2,206 ▲155.84 ▲0.0399.90 ▼6.0240.18 ▼1.44
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0736.77 ▼3.8936.14 ▼0.11
Add New Post /wp-admin/post-new.php1,523 ▲423.23 ▲0.09675.42 ▲66.0547.61 ▼3.88
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.02103.75 ▲1.0344.80 ▲1.98

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mpq-video-gallery-xmlrpc/mpqvideogllrxmlrpc_settings_page.php:16
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mpq-video-gallery-xmlrpc/mpqvideogllr_xmlrpc.php on line 27
    • > PHP Warning
      require_once(ABSPATHwp-content/plugins/mpqvideogallery-xmlrpc/mpqvideogllr_xmlrpc.php): failed to open stream: No such file or directory in wp-content/plugins/mpq-video-gallery-xmlrpc/mpqvideogllr_xmlrpc.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-content/plugins/mpqvideogallery-xmlrpc/mpqvideogllr_xmlrpc.php' (include_path='.:/usr/share/php') in wp-content/plugins/mpq-video-gallery-xmlrpc/mpqvideogllr_xmlrpc.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

mpq-video-gallery-xmlrpc/mpqvideogllr_xmlrpc.php 85% from 13 tests

The main PHP script in "MPQ Video Gallery XMLRPC" version 0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mpq-video-gallery-xmlrpc.php" instead of "mpqvideogllr_xmlrpc.php")
  • Description: The description should be shorter than 140 characters (currently 342 characters long)

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
Good job! No executable or dangerous file extensions detected867 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2251462867

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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