84% mm-pinterest-connect

Code Review | MM Pinterest Connection

WordPress plugin MM Pinterest Connection scored84%from 54 tests.

About plugin

  • Plugin page: mm-pinterest-connect
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Nov 19, 2015
  • Number of updates: 5
  • Update frequency: every 6.0 days
  • Top authors: rodtech (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.45ms] Passed 4 tests

This is a short check of server-side resources used by MM Pinterest Connection
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.45 ▼6.20
Dashboard /wp-admin3.37 ▲0.0649.15 ▼0.00
Posts /wp-admin/edit.php3.42 ▲0.0648.54 ▼3.78
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.37 ▲0.19
Media Library /wp-admin/upload.php3.29 ▲0.0638.14 ▲1.06

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for MM Pinterest Connection
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▲0.011.57 ▼0.2840.23 ▼0.95
Dashboard /wp-admin2,198 ▲215.61 ▼0.0582.71 ▼9.9844.04 ▲0.30
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0437.77 ▼1.4235.40 ▼0.34
Add New Post /wp-admin/post-new.php1,526 ▼223.69 ▲0.54623.36 ▼75.9848.54 ▼6.33
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0097.06 ▼23.7142.70 ▼5.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mm-pinterest-connect/mm-pinterest-connect.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: pinterest connect, pinterest signup, social login, pinterest, signup

mm-pinterest-connect/mm-pinterest-connect.php 92% from 13 tests

The principal PHP file in "MM Pinterest Connection" v. 1... is loaded by WordPress automatically on each request
It is important to fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin251 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1439251

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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
PNG images were not found in this plugin