10% creative-facebook-like-box

Code Review | Creative Like Box

WordPress plugin Creative Like Box scored10%from 54 tests.

About plugin

  • Plugin page: creative-facebook...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 4, 2017
  • Latest release: Sep 11, 2023
  • Number of updates: 24
  • Update frequency: every 94.2 days
  • Top authors: mnaopu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,833 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/creative-facebook-like-box/creative-facebook-like-box.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; cflbox_info has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼59.23ms] Passed 4 tests

Analyzing server-side resources used by Creative Like Box
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.395.34 ▼41.83
Dashboard /wp-admin2.10 ▼1.257.27 ▼53.66
Posts /wp-admin/edit.php2.10 ▼1.267.38 ▼43.99
Add New Post /wp-admin/post-new.php2.10 ▼3.796.60 ▼97.44
Media Library /wp-admin/upload.php2.10 ▼1.136.93 ▼32.43

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_cflbox_info
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Creative Like Box
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.36 ▼1.045.33 ▲3.5945.07 ▲4.13
Dashboard /wp-admin2,226 ▲384.84 ▼0.96106.86 ▲0.3044.16 ▼0.94
Posts /wp-admin/edit.php2,106 ▲202.02 ▲0.0637.31 ▼1.8236.37 ▼2.36
Add New Post /wp-admin/post-new.php1,547 ▲3323.39 ▲5.80678.10 ▼13.5657.98 ▼0.04
Media Library /wp-admin/upload.php1,405 ▲144.22 ▼0.02102.41 ▼14.2548.78 ▲1.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/creative-facebook-like-box/creative-facebook-like-box.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; cflbox_info has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_cflbox_info
    • db_upgraded
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creative-facebook-like-box/creative-facebook-like-box.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot_1.png), #2 ()
  • Donate link: Please fix this invalid url: "paypal.me/mnaotech"
The official readme.txt is a good inspiration

creative-facebook-like-box/creative-facebook-like-box.php Passed 13 tests

The main PHP script in "Creative Like Box" version 2.2 is automatically included on every request by WordPress
102 characters long description:
This is a simple Facebook Like Box Plugin. By this plugin you can add a widget for your Facebook page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1381371

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Screenshot_1.png141.09KB32.69KB▼ 76.83%