67% manage-issue-based-magazine

Code Review | Manage Issue Based Magazine (Multi-language)

WordPress plugin Manage Issue Based Magazine (Multi-language) scored 67% from 54 tests.

About plugin

  • Plugin page: manage-issue-base...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.2.3
  • WordPress version: 6.3.1
  • First release: Mar 3, 2014
  • Latest release: Oct 24, 2015
  • Number of updates: 42
  • Update frequency: every 14.4 days
  • Top authors: PurpleMAD (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

50+ active / 11,438 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.65MB] [CPU: ▼50.24ms] Passed 4 tests

A check of server-side resources used by Manage Issue Based Magazine (Multi-language)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.34 ▼1.129.99 ▼31.50
Dashboard /wp-admin2.36 ▼0.9416.78 ▼38.02
Posts /wp-admin/edit.php2.36 ▼1.0012.10 ▼39.52
Add New Post /wp-admin/post-new.php2.36 ▼3.5313.49 ▼91.91
Media Library /wp-admin/upload.php2.36 ▼0.8711.67 ▼25.31
Issues /wp-admin/edit-tags.php?taxonomy=issues&post_type=magazine2.3612.81
Magazine Category /wp-admin/edit-tags.php?taxonomy=magazine_category&post_type=magazine2.3612.07
Add New /wp-admin/post-new.php?post_type=magazine2.369.41
MIM Issue Settings /wp-admin/edit.php?post_type=magazine&page=issue-setting2.3614.35
All Magazines /wp-admin/edit.php?post_type=magazine2.3612.20
MIM Plugin Help /wp-admin/edit.php?post_type=magazine&page=help2.3613.06

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: 1 new table, 28 new options
New tables
wp_taxonomymeta
New WordPress options
can_compress_scripts
mim_full_article_display
widget_mim_current_issue_widget
widget_theysaidso_widget
mim_search_behaviour
mim_issue_display_category
mim_current_issue
mim_issue_menu_category
widget_mim_issue_list_widget
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Manage Issue Based Magazine (Multi-language)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲14013.23 ▼1.424.59 ▲2.2539.59 ▼9.28
Dashboard /wp-admin2,253 ▲655.84 ▲0.94102.34 ▼11.5671.88 ▲31.24
Posts /wp-admin/edit.php2,133 ▲412.01 ▲0.0236.69 ▼6.4932.62 ▼4.53
Add New Post /wp-admin/post-new.php1,551 ▲2823.47 ▲2.30672.18 ▼71.6560.78 ▲7.70
Media Library /wp-admin/upload.php1,432 ▲444.23 ▼0.0297.16 ▼17.7680.88 ▲34.44
Issues /wp-admin/edit-tags.php?taxonomy=issues&post_type=magazine1,6593.5652.7972.45
Magazine Category /wp-admin/edit-tags.php?taxonomy=magazine_category&post_type=magazine1,6133.1545.4995.91
Add New /wp-admin/post-new.php?post_type=magazine3,1427.84179.51127.69
MIM Issue Settings /wp-admin/edit.php?post_type=magazine&page=issue-setting1,2742.0926.2950.51
All Magazines /wp-admin/edit.php?post_type=magazine1,2171.9332.1230.86
MIM Plugin Help /wp-admin/edit.php?post_type=magazine&page=help8352.0325.4726.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in MIM_Issue_Feature_Post_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 14 options
    • can_compress_scripts
    • widget_mim_current_issue_widget
    • widget_widget_mim_issue_featured_recent_posts
    • widget_mim_current_issue_category_widget
    • widget_mim_issue_list_widget
    • issues_children
    • magazine_category_children
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=magazine&page=help
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in MIM_Issue_Feature_Post_Widget is deprecated since version 4.3.0! Use __construct() instead.

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
Please fix the following
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/manage-issue-based-magazine/taxonomy-magazine_category.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/manage-issue-based-magazine/includes/magazine-listing-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/manage-issue-based-magazine/mim-posttype-taxonomy.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/manage-issue-based-magazine/mim-functions.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/manage-issue-based-magazine/index.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/manage-issue-based-magazine/includes/issue-listing-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/manage-issue-based-magazine/mim-user-field.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/manage-issue-based-magazine/mim-shortcode.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/manage-issue-based-magazine/template-magazine-category-listing.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/manage-issue-based-magazine/mim-widgets.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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 to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Manage Listing Of Magazine.), #2 (Add New Magazine.), #3 (Add & Manage Issues.), #4 (Add & Manage Magazine Category.), #5 (Manage Magazine Issue General Settings.), #6 (Demo Of Issue Listing In Website View.), #7 (Demo Of Home Page View. [Visit Home Page](http://mibm.issuemagazineplus.com/)), #8 (Shortcode Samples. [Check More Samples](http://mibm.issuemagazineplus.com/sample-shortcode/)), #9 (Displays Widgets.), #10 (Added Features in Magazine Issue General Settings.), #11 (Displays Issue categories in Primary Menu.), #12 (Displays Magazine Listing.), #13 (Displays Issue Listing.)
You can take inspiration from this readme.txt

manage-issue-based-magazine/index.php 77% from 13 tests

The main file in "Manage Issue Based Magazine (Multi-language)" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("manage-issue-based-magazine.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 296 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected5,685 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP134646482,709
PO File56056051,636
CSS435601,158
JavaScript53425182

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.62
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
14 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
css/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%