90% wpc-pinterest-widget

Code Review | Pinterest Widget by Angie Makes

WordPress plugin Pinterest Widget by Angie Makes scored90%from 54 tests.

About plugin

  • Plugin page: wpc-pinterest-widget
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.4-4.7.4
  • WordPress version: 6.3.1
  • First release: Aug 17, 2015
  • Latest release: May 10, 2017
  • Number of updates: 7
  • Update frequency: every 90.6 days
  • Top authors: cbaldelomar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /8,912 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.03MB] [CPU: ▼2.10ms] Passed 4 tests

A check of server-side resources used by Pinterest Widget by Angie Makes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.65 ▼0.06
Dashboard /wp-admin3.34 ▲0.0347.36 ▼1.86
Posts /wp-admin/edit.php3.39 ▲0.0345.98 ▼3.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.86 ▼2.89
Media Library /wp-admin/upload.php3.26 ▲0.0338.94 ▲3.15

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_wpc_pinterest_widget
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Pinterest Widget by Angie Makes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.511.92 ▼0.0944.85 ▼2.60
Dashboard /wp-admin2,195 ▲155.62 ▼0.0291.48 ▲0.7440.75 ▼0.34
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0435.65 ▼2.9932.63 ▼5.50
Add New Post /wp-admin/post-new.php1,526 ▼923.64 ▲5.44682.69 ▲59.2564.90 ▼9.90
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.00103.38 ▼2.9242.91 ▼3.64

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_wpc_pinterest_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: pinterest board widget, pinterest profile widget, pinterest pin widget, pinterest widget

wpc-pinterest-widget/wpc-pinterest-widget.php Passed 13 tests

Analyzing the main PHP file in "Pinterest Widget by Angie Makes" version 1.3
130 characters long description:
Add official Pinterest widget to your site. Insert your Pinterest board widget, profile widget, and pin widget to any widget area.

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
No dangerous file extensions were detected107 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2161084
Markdown113023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.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%
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
There were not PNG files found in your plugin