84% miappi-social-wall

Code Review | Miappi: Social Media Wall

WordPress plugin Miappi: Social Media Wall scored 84% from 54 tests.

About plugin

  • Plugin page: miappi-social-wall
  • Plugin version: 0.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 12, 2014
  • Latest release: Jun 10, 2016
  • Number of updates: 31
  • Update frequency: every 26.1 days
  • Top authors: Toby_Britton (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active / 6,969 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.60ms] Passed 4 tests

This is a short check of server-side resources used by Miappi: Social Media Wall
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.95 ▲1.53
Dashboard /wp-admin3.34 ▲0.0451.07 ▼3.09
Posts /wp-admin/edit.php3.39 ▲0.0454.69 ▲0.62
Add New Post /wp-admin/post-new.php5.92 ▲0.0494.47 ▲5.12
Media Library /wp-admin/upload.php3.26 ▲0.0337.15 ▼1.46

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_miappi_widget
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Miappi: Social Media Wall
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼013.30 ▲0.144.94 ▲3.1641.69 ▼0.33
Dashboard /wp-admin2,206 ▼05.83 ▼0.02110.37 ▲0.2037.50 ▼2.70
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0042.75 ▲3.6638.55 ▲3.30
Add New Post /wp-admin/post-new.php1,533 ▼123.14 ▲0.09680.72 ▼9.6651.10 ▼6.27
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.05102.72 ▼10.8046.13 ▼1.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_miappi_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/miappi-social-wall/classes/miappi_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/miappi-social-wall/miappi-plugin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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 to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

miappi-social-wall/miappi-plugin.php 92% from 13 tests

The main file in "Miappi: Social Media Wall" v. 0.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("miappi-social-wall.php" instead of "miappi-plugin.php")

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
Good job! No executable or dangerous file extensions detected169 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35131169

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.50
▷ Minimum class complexity4.00
▷ Maximum class complexity11.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin