10% issuu-panel

Code Review | Issuu Panel

WordPress plugin Issuu Panel scored10%from 54 tests.

About plugin

  • Plugin page: issuu-panel
  • Plugin version: 1.6.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.3
  • WordPress version: 6.3.1
  • First release: Nov 30, 2014
  • Latest release: Mar 26, 2017
  • Number of updates: 27
  • Update frequency: every 31.4 days
  • Top authors: pedromjava (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,950 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/issuu-panel/includes/classes/class.issuupanelfoldercacheentitymanager.php+45
    file_put_contents(wp-content/uploads/issuu-panel-folder/folder-documents.txt): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.25MB] [CPU: ▲0.17ms] Passed 4 tests

A check of server-side resources used by Issuu Panel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2845.68 ▲5.69
Dashboard /wp-admin3.55 ▲0.2551.74 ▲1.10
Posts /wp-admin/edit.php3.61 ▲0.2551.77 ▲1.61
Add New Post /wp-admin/post-new.php6.16 ▲0.2797.57 ▼7.74
Media Library /wp-admin/upload.php3.48 ▲0.2543.53 ▲7.97

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 129 new files
Database: no new tables, 15 new options
New WordPress options
issuu_painel_cache_status
can_compress_scripts
widget_recent-posts
widget_recent-comments
issuu_painel_enabled_user
issuu_painel_shortcode_cache
widget_theysaidso_widget
issuu_painel_api_key
widget_issuupanelwidget
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by Issuu Panel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16513.44 ▼0.7711.41 ▲9.9442.49 ▼0.07
Dashboard /wp-admin2,206 ▲285.56 ▼0.1090.25 ▼25.7165.42 ▲19.43
Posts /wp-admin/edit.php2,129 ▲291.94 ▼0.0338.64 ▼5.0035.33 ▼3.74
Add New Post /wp-admin/post-new.php1,698 ▲17022.33 ▼0.95631.44 ▼11.5648.36 ▼9.44
Media Library /wp-admin/upload.php1,418 ▲214.16 ▼0.0396.67 ▼4.4077.35 ▲29.69

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
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/issuu-panel/includes/classes/class.issuupaneldebug.php+155
    unlink(wp-content/uploads/issuu-panel-folder/): Is a directory
  • Zombie WordPress options were found after uninstall: 15 options
    • issuu_painel_enabled_user
    • can_compress_scripts
    • issuu_painel_debug
    • theysaidso_admin_options
    • issuu_painel_reader
    • widget_recent-posts
    • issuu_painel_cron
    • widget_theysaidso_widget
    • issuu_painel_api_secret
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 37× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'IssuuPanelSubmenu' not found in wp-content/plugins/issuu-panel/menu/document/config.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function getMobileDetect() on null in wp-content/plugins/issuu-panel/shortcode/generator.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_issuu_message() in wp-content/plugins/issuu-panel/menu/document/forms/url-upload.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/issuu-panel/shortcode/the-last-document-folder.php on line 47
    • > PHP Fatal error
      Uncaught Error: Interface 'IssuuPanelPage' not found in wp-content/plugins/issuu-panel/includes/classes/class.issuupanelsubmenu.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'IssuuPanelService' not found in wp-content/plugins/issuu-panel/shortcode/class.issuupanelshortcodes.php:3
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/issuu-panel/shortcode/the-last-document-folder.php on line 47
    • > PHP Fatal error
      Uncaught Error: Interface 'IssuuPanelHook' not found in wp-content/plugins/issuu-panel/includes/classes/class.issuupanelfilter.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/issuu-panel/widget/class.issuupanelwidget.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'IssuuPanelPage' not found in wp-content/plugins/issuu-panel/menu/main/config.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: folders, issuu, documents, admin, embed...

issuu-panel/issuu-panel.php Passed 13 tests

"Issuu Panel" version 1.6.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Admin panel for Issuu. You can upload your documents, create folders and embed documents in posts.

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 plugin9,507 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
PHP639871,5036,867
CSS131437821
PO File32956675
Markdown31050561
JavaScript124310519
XML1457864

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.35
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes40
▷ Abstract classes25.00%
▷ Concrete classes3895.00%
▷ Final classes00.00%
Methods340
▷ Static methods123.53%
▷ Public methods29486.47%
▷ Protected methods185.29%
▷ Private methods288.24%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants945.00%
▷ Class constants1155.00%
▷ Public constants11100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.67MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png88.36KB29.44KB▼ 66.69%
screenshot-9.png95.04KB36.73KB▼ 61.35%
screenshot-5.png66.61KB25.40KB▼ 61.86%
screenshot-3.png29.75KB29.39KB▼ 1.23%
includes/reader/img/icon.png0.73KB0.96KB0.00%