10% easy-pinterest

Code Review | Easy Pinterest for WordPress

WordPress plugin Easy Pinterest for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: easy-pinterest
  • Plugin version: 1.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Feb 22, 2012
  • Latest release: Apr 7, 2016
  • Number of updates: 22
  • Update frequency: every 69.9 days
  • Top authors: christopherross (90.91%)sstruemph (13.64%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /20,747 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/easy-pinterest/easy-pinterest.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; thisismyurl_easy_pinterest_widget has a deprecated constructor

Server metrics [RAM: ▼1.88MB] [CPU: ▼55.85ms] Passed 4 tests

This is a short check of server-side resources used by Easy Pinterest for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.364.81 ▼32.70
Dashboard /wp-admin2.13 ▼1.185.58 ▼44.62
Posts /wp-admin/edit.php2.13 ▼1.236.50 ▼47.25
Add New Post /wp-admin/post-new.php2.13 ▼3.765.33 ▼94.28
Media Library /wp-admin/upload.php2.13 ▼1.106.69 ▼37.24

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_thisismyurl_easy_pinterest_widget
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Pinterest for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.72 ▲0.371.86 ▼0.2644.92 ▲2.66
Dashboard /wp-admin2,199 ▲255.52 ▼0.0985.67 ▼34.4340.08 ▼5.82
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0342.78 ▲2.3836.20 ▼0.86
Add New Post /wp-admin/post-new.php1,536 ▲1023.22 ▲0.13669.32 ▼23.7156.61 ▼6.67
Media Library /wp-admin/upload.php1,407 ▲74.14 ▼0.14107.26 ▲4.7446.23 ▼3.39
Easy Pinterest /wp-admin/thisismyurl_easy_pinterest.php260.420.0813.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Deprecated in wp-content/plugins/easy-pinterest/easy-pinterest.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; thisismyurl_easy_pinterest_widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_thisismyurl_easy_pinterest_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-pinterest/easy-pinterest.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/thisismyurl_easy_pinterest.php
    • > Network (severe)
    wp-admin/thisismyurl_easy_pinterest.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: Please take inspiration from this readme.txt

easy-pinterest/easy-pinterest.php Passed 13 tests

The principal PHP file in "Easy Pinterest for WordPress" v. 1.2.9 is loaded by WordPress automatically on each request
93 characters long description:
An easy to use WordPress function to add Easy Pinterest to any theme as a function or Widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17325137

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
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
There were not PNG files found in your plugin