90% wp-flipagram

Code Review | Flipagram

WordPress plugin Flipagram scored90%from 54 tests.

About plugin

  • Plugin page: wp-flipagram
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Oct 19, 2015
  • Latest release: Feb 3, 2018
  • Number of updates: 14
  • Update frequency: every 59.9 days
  • Top authors: ramiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Flipagram
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.30 ▼4.74
Dashboard /wp-admin3.31 ▲0.0145.48 ▲0.63
Posts /wp-admin/edit.php3.36 ▲0.0044.14 ▼4.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.72 ▲2.71
Media Library /wp-admin/upload.php3.23 ▲0.0033.40 ▲0.05

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flipagram
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.081.79 ▲0.0141.16 ▼7.21
Dashboard /wp-admin2,209 ▲174.88 ▼0.0297.86 ▼6.5738.91 ▼4.66
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0239.17 ▲2.7035.71 ▲2.89
Add New Post /wp-admin/post-new.php1,542 ▼018.41 ▲0.06589.24 ▼14.7244.11 ▼4.97
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0095.03 ▼0.4540.68 ▼2.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: flipagram, embed, visual stories

wp-flipagram/wp-flipagram.php Passed 13 tests

The principal PHP file in "Flipagram" v. 1.2 is loaded by WordPress automatically on each request
65 characters long description:
Embed visual stories from flipagram.com into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected39 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4264839

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.44MB with 0.30MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png427.25KB128.30KB▼ 69.97%
screenshot-1.png23.62KB7.86KB▼ 66.73%