90% cbxinstaphotos

Code Review | CBX Insta Photos

WordPress plugin CBX Insta Photos scored 90% from 53 tests.

About plugin

  • Plugin page: cbxinstaphotos
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4.1
  • WordPress version: 5.8.1
  • First release: Jul 2, 2016
  • Latest release: May 3, 2020
  • Number of updates: 15
  • Update frequency: every 93.4 days
  • Top authors: manchumahara (100%)

Code review

53 tests

User reviews

1 review

Install metrics

200+ active / 3,479 total downloads


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.37MB] [CPU: ▼303.34ms] Passed 4 tests

Server-side resources used by CBX Insta Photos
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.32 ▲0.6038.28 ▲13.87
Dashboard /wp-admin3.54 ▲0.4940.63 ▼3.65
Posts /wp-admin/edit.php3.59 ▲0.4945.10 ▲8.31
Add New Post /wp-admin/post-new.php5.45 ▲0.0265.70 ▼1,213.72
Media Library /wp-admin/upload.php3.49 ▲0.4834.38 ▼4.31
Add New /wp-admin/post-new.php?post_type=cbxinstaphotos3.5345.38
All CBX Insta Photos /wp-admin/edit.php?post_type=cbxinstaphotos3.5335.95

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CBX Insta Photos
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,688 ▲8215.81 ▲0.256.57 ▼1.2048.32 ▲0.97
Dashboard /wp-admin2,960 ▲1045.93 ▲0.05130.88 ▼16.76127.22 ▲26.35
Posts /wp-admin/edit.php2,755 ▲492.68 ▼0.0164.34 ▼2.6194.58 ▲6.12
Add New Post /wp-admin/post-new.php1,687 ▲3418.88 ▲0.27376.70 ▲31.69128.93 ▲23.55
Media Library /wp-admin/upload.php1,750 ▼224.99 ▼0.02124.00 ▼37.59124.06 ▲12.33
Add New /wp-admin/post-new.php?post_type=cbxinstaphotos2,7573.6486.63107.72
All CBX Insta Photos /wp-admin/edit.php?post_type=cbxinstaphotos1,4272.6461.2666.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
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_cbxinstaphotos-widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: The official readme.txt might help

cbxinstaphotos/cbxinstaphotos.php Passed 13 tests

"CBX Insta Photos" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
37 characters long description:
Instagram photo display for wordpress

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
Everything looks great! No dangerous files found in this plugin3,610 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.21
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
▷ Static methods108.20%
▷ Public methods10888.52%
▷ Protected methods97.38%
▷ Private methods54.10%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants550.00%
▷ Class constants550.00%
▷ Public constants5100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/instafollow.png6.44KB3.23KB▼ 49.80%
widgets/elementor-elements/elementor-icon/icon.png7.30KB3.54KB▼ 51.50%
assets/images/menu_icon.png17.67KB0.63KB▼ 96.42%
assets/images/instagram_disconnect.png4.36KB0.95KB▼ 78.21%