84% flipboard-magazine-widget

Code Review | Flipboard Magazine Widget

WordPress plugin Flipboard Magazine Widget scored84%from 54 tests.

About plugin

  • Plugin page: flipboard-magazin...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Jan 26, 2014
  • Latest release: Jun 14, 2020
  • Number of updates: 4
  • Update frequency: every 582.7 days
  • Top authors: taupecat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,245 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Flipboard Magazine Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.04 ▼8.44
Dashboard /wp-admin3.32 ▲0.0147.05 ▼2.32
Posts /wp-admin/edit.php3.37 ▲0.0148.07 ▲3.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.93 ▲7.90
Media Library /wp-admin/upload.php3.24 ▲0.0136.17 ▲2.71

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_flipboard_magazine_widget
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flipboard Magazine Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲6413.25 ▼1.482.85 ▲0.9141.62 ▼0.77
Dashboard /wp-admin2,206 ▲245.85 ▲0.95110.66 ▼5.6741.98 ▼0.90
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0440.43 ▲4.6337.73 ▲4.23
Add New Post /wp-admin/post-new.php1,533 ▼023.69 ▲0.52602.09 ▼91.6860.56 ▲7.71
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0298.51 ▼3.4842.34 ▼0.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_flipboard_magazine_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flipboard-magazine-widget/class-flipboard-magazine-widget.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function taupecat\\plugins_url() in wp-content/plugins/flipboard-magazine-widget/class-flipboard.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% 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:
  • Screenshots: Add an image for screenshot #1 (An example of how the widget appears on your site.)
The official readme.txt might help

flipboard-magazine-widget/flipboard-magazine-widget.php Passed 13 tests

"Flipboard Magazine Widget" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
Add a Flipboard magazine widget (https://share.flipboard.com/) to your sidebar

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
Success! There were no dangerous files found in this plugin97 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4469996
JavaScript1111

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png121.17KB43.17KB▼ 64.37%