10% genesis-media-project

Code Review | Genesis Media Project

WordPress plugin Genesis Media Project scored 10% from 54 tests.

About plugin

  • Plugin page: genesis-media-pro...
  • Plugin version: 0.9.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2012
  • Latest release: Apr 25, 2012
  • Number of updates: 16
  • Update frequency: every 4.5 days
  • Top authors: Nick_theGeek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 5,850 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_theme_data is deprecated since version 3.4.0! Use wp_get_theme() instead.

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.99ms] Passed 4 tests

An overview of server-side resources used by Genesis Media Project
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.72 ▼9.30
Dashboard /wp-admin3.31 ▲0.0046.43 ▼3.09
Posts /wp-admin/edit.php3.36 ▲0.0047.07 ▼3.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.85 ▼4.44
Media Library /wp-admin/upload.php3.23 ▲0.0034.25 ▼1.08

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Media Project
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.391.70 ▼0.5440.16 ▲1.53
Dashboard /wp-admin2,206 ▲154.91 ▼0.99134.24 ▲35.0055.84 ▲10.53
Posts /wp-admin/edit.php2,092 ▼02.03 ▲0.0440.01 ▲0.3635.36 ▼1.38
Add New Post /wp-admin/post-new.php1,534 ▲2023.21 ▲5.47654.78 ▲42.1151.25 ▼7.77
Media Library /wp-admin/upload.php1,388 ▼34.19 ▲0.0196.16 ▼5.5144.69 ▲1.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-media-project/modules/video/video-thumbnail.php:368
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-media-project/modules/tab-slider/widgets/tab-slider.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/genesis-media-project/modules/video/functions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/genesis-media-project/modules/video/output.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/genesis-media-project/modules/video/post-types-taxonomies.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/genesis-media-project/classes/meta-box-builder/init.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-media-project/modules/tab-slider/module.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-media-project/classes/meta-box-builder/example-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-media-project/modules/tab-slider/admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-media-project/classes/module-loader/module-loader.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === genesis-media-project === )
The official readme.txt is a good inspiration

genesis-media-project/plugin.php 77% from 13 tests

This is the main PHP file of "Genesis Media Project" version 0.9.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("genesis-media-project.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,735 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP185966502,185
CSS39099744
PO File3222481592
JavaScript861109214

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity43.17
▷ Minimum class complexity2.00
▷ Maximum class complexity142.00
Average method complexity8.67
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
28 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
classes/meta-box-builder/images/ico-delete.png0.70KB0.72KB0.00%
classes/admin-builder/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
classes/admin-builder/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
classes/admin-builder/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
classes/meta-box-builder/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%