10% elbuntu-pins

Code Review | Elbuntu Pins

WordPress plugin Elbuntu Pins scored10%from 54 tests.

About plugin

  • Plugin page: elbuntu-pins
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2014
  • Latest release: Oct 5, 2015
  • Number of updates: 13
  • Update frequency: every 26.8 days
  • Top authors: elbuntu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /808 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
These installer errors require your attention
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5737
    Function get_plugin_data was called with an argument that is deprecated since version 3.0.0! The Site Wide Only: true plugin header is deprecated. Use Network: true instead.

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.65ms] Passed 4 tests

An overview of server-side resources used by Elbuntu Pins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.46 ▼1.14
Dashboard /wp-admin3.34 ▲0.0351.68 ▲2.66
Posts /wp-admin/edit.php3.39 ▲0.0347.68 ▲0.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.21 ▼2.59
Media Library /wp-admin/upload.php3.26 ▲0.0336.37 ▲0.63

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables
ep_pinterest_settings
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Elbuntu Pins
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲12613.57 ▼1.184.09 ▲2.1340.79 ▼2.92
Dashboard /wp-admin2,222 ▲345.04 ▼0.84112.03 ▲9.8045.06 ▲0.02
Posts /wp-admin/edit.php2,102 ▲132.01 ▲0.0135.54 ▼5.3136.11 ▲0.01
Add New Post /wp-admin/post-new.php1,527 ▲1317.65 ▲0.17652.91 ▲38.2260.44 ▲10.69
Media Library /wp-admin/upload.php1,407 ▲194.28 ▼0.0198.19 ▼2.6042.26 ▼0.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function get_plugin_data was called with an argument that is deprecated since version 3.0.0! The Site Wide Only: true plugin header is deprecated. Use Network: true instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/elbuntu-pins/admin/admin.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/elbuntu-pins/pins-loader.php:39
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/elbuntu-pins/admin/ep-admin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elbuntu-pins/pins-engine.php:181
    • > PHP Notice
      Undefined index: settings in wp-content/plugins/elbuntu-pins/admin/ep-admin.php on line 7

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === elbuntu-pins === )
Please take inspiration from this readme.txt

elbuntu-pins/pins-loader.php 92% from 13 tests

The entry point to "Elbuntu Pins" version 2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("elbuntu-pins.php" instead of "pins-loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected363 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP47237355
JavaScript2388

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png30.93KB13.14KB▼ 57.53%