84% meta-for-pinterest

Code Review | MetaPin

WordPress plugin MetaPin scored84%from 54 tests.

About plugin

  • Plugin page: meta-for-pinterest
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 23, 2018
  • Latest release: Jan 31, 2020
  • Number of updates: 15
  • Update frequency: every 57.1 days
  • Top authors: ilektronx (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /2,404 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.09ms] Passed 4 tests

An overview of server-side resources used by MetaPin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.44 ▲2.84
Dashboard /wp-admin3.32 ▲0.0250.57 ▼2.38
Posts /wp-admin/edit.php3.37 ▲0.0253.21 ▲5.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.58 ▼13.74
Media Library /wp-admin/upload.php3.32 ▲0.0942.45 ▲4.91

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by MetaPin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.102.13 ▲0.1744.36 ▲1.29
Dashboard /wp-admin2,206 ▲185.86 ▲0.94104.60 ▼6.9038.54 ▼6.97
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0335.74 ▼3.3331.54 ▼4.13
Add New Post /wp-admin/post-new.php1,532 ▲1323.22 ▲0.23684.14 ▲76.0547.05 ▲0.47
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.04108.87 ▲7.0346.18 ▲2.61

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-for-pinterest/admin/meta-for-pinterest-admin.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: meta, pinterest

meta-for-pinterest/meta-for-pinterest.php 92% from 13 tests

Analyzing the main PHP file in "MetaPin" version 1.0.2
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected553 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript292464463
PHP281990

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods150.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
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
There are no PNG files in this plugin