84% mig33

Code Review | mig33

WordPress plugin mig33 scored84%from 54 tests.

About plugin

  • Plugin page: mig33
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6
  • WordPress version: 6.3.1
  • First release: Feb 19, 2014
  • Latest release: Aug 17, 2016
  • Number of updates: 14
  • Update frequency: every 65.1 days
  • Top authors: GamerZ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,415 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.06MB] [CPU: ▼2.48ms] Passed 4 tests

An overview of server-side resources used by mig33
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.69 ▼1.67
Dashboard /wp-admin3.37 ▲0.0645.15 ▼0.84
Posts /wp-admin/edit.php3.42 ▲0.0643.82 ▼6.42
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.72 ▼0.99
Media Library /wp-admin/upload.php3.29 ▲0.0632.31 ▼0.69
mig33 /wp-admin/options-general.php?page=mig333.2630.07

Server storage [IO: ▲0.02MB] [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
db_upgraded
mig33
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for mig33
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.171.77 ▲0.0741.68 ▼5.53
Dashboard /wp-admin2,210 ▲225.84 ▼0.01102.24 ▼5.0540.99 ▼4.30
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0038.06 ▼2.8532.34 ▼7.14
Add New Post /wp-admin/post-new.php1,536 ▲2223.26 ▲5.81650.85 ▼27.0051.61 ▼17.26
Media Library /wp-admin/upload.php1,386 ▼54.20 ▼0.0297.16 ▼6.7441.99 ▼1.14
mig33 /wp-admin/options-general.php?page=mig338802.0322.8226.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 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/mig33/mig33.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: social network, mig33, blog, miniblog, post

mig33/mig33.php Passed 13 tests

"mig33" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
Share a post to mig33's Miniblog whenever you publish a post in WordPress.

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
No dangerous file extensions were detected311 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP245146311

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin