10% issuu-magazine-display

Code Review | ISSUU Magazine Display

WordPress plugin ISSUU Magazine Display scored 10% from 54 tests.

About plugin

  • Plugin page: issuu-magazine-di...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.5.2
  • WordPress version: 6.3.1
  • First release: Jul 25, 2014
  • Latest release: May 15, 2016
  • Number of updates: 24
  • Update frequency: every 27.5 days
  • Top authors: sightfactory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,604 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/issuu-magazine-display/imd.php+11
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.83MB] [CPU: ▼58.82ms] Passed 4 tests

A check of server-side resources used by ISSUU Magazine Display
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.314.30 ▼37.80
Dashboard /wp-admin2.17 ▼1.135.90 ▼59.17
Posts /wp-admin/edit.php2.18 ▼1.185.70 ▼48.42
Add New Post /wp-admin/post-new.php2.18 ▼3.715.16 ▼89.90
Media Library /wp-admin/upload.php2.18 ▼1.058.59 ▼28.31
ISSUU Magazine Display /wp-admin/options-general.php?page=issuu-setting-admin2.185.69

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ISSUU Magazine Display
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.79 ▲0.421.51 ▼1.1337.67 ▼10.69
Dashboard /wp-admin2,213 ▲284.84 ▼1.00103.85 ▼16.8738.39 ▼21.21
Posts /wp-admin/edit.php2,072 ▼172.00 ▼0.0336.08 ▼5.2331.85 ▼6.26
Add New Post /wp-admin/post-new.php1,536 ▲223.14 ▲0.18618.63 ▼24.2267.33 ▲2.72
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.0797.72 ▼3.4040.70 ▼3.26
ISSUU Magazine Display /wp-admin/options-general.php?page=issuu-setting-admin9032.1722.3327.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/issuu-magazine-display/imd.php+11
    Constant WP_DEBUG already defined
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=issuu-setting-admin
    • > Notice in wp-content/plugins/issuu-magazine-display/imd.php+11
    Constant WP_DEBUG already defined
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=issuu-setting-admin
    • > Notice in wp-content/plugins/issuu-magazine-display/imd.php+543
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=issuu-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=issuu-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/issuu-magazine-display/imd.php:12

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 90% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Magazine layout on website.), #2 (Settings screen. Enter your api key here.), #3 (Entering shortcode into a page.)
  • Plugin Name: Please specify the plugin name on the first line ( === issuu-magazine-display === )
You can look at the official readme.txt

issuu-magazine-display/imd.php 92% from 13 tests

The main PHP script in "ISSUU Magazine Display" version 1.0.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("issuu-magazine-display.php" instead of "imd.php")

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
Success! There were no dangerous files found in this plugin1,354 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS14213202942
PHP1121107347
HTML121265

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
14 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/blueprint-css/plugins/buttons/icons/key.png0.44KB0.41KB▼ 8.13%
assets/blueprint-css/plugins/link-icons/icons/feed.png0.67KB0.90KB0.00%
assets/blueprint-css/plugins/link-icons/icons/doc.png0.76KB0.92KB0.00%
assets/blueprint-css/plugins/link-icons/icons/external.png45.75KB0.11KB▼ 99.77%
assets/blueprint-css/plugins/link-icons/icons/im.png0.72KB0.74KB0.00%