83% goodpix-content-share

Code Review | GoodPix Content Share

WordPress plugin GoodPix Content Share scored83%from 54 tests.

About plugin

  • Plugin page: goodpix-content-s...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-7.0
  • WordPress version: 6.3.1
  • First release: Feb 7, 2020
  • Latest release: Mar 16, 2022
  • Number of updates: 14
  • Update frequency: every 55.1 days
  • Top authors: goodpix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /519 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.28ms] Passed 4 tests

Analyzing server-side resources used by GoodPix Content Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.67 ▼8.67
Dashboard /wp-admin3.31 ▲0.0044.36 ▼2.49
Posts /wp-admin/edit.php3.36 ▲0.0044.29 ▼1.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.33 ▼4.36
Media Library /wp-admin/upload.php3.23 ▲0.0034.31 ▲2.02

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for GoodPix Content Share
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.161.82 ▼0.1141.16 ▼3.74
Dashboard /wp-admin2,206 ▲215.85 ▼0.00113.81 ▼2.9441.27 ▼0.01
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.67 ▲3.4335.02 ▲1.83
Add New Post /wp-admin/post-new.php1,533 ▲1323.22 ▼0.03662.31 ▼19.7450.65 ▼8.47
Media Library /wp-admin/upload.php1,388 ▼34.28 ▲0.0796.02 ▼5.5545.53 ▲4.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/goodpix-content-share/Goodpix.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Goodpix short code screenshot)
The official readme.txt is a good inspiration

goodpix-content-share/Goodpix.php 85% from 13 tests

This is the main PHP file of "GoodPix Content Share" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 322 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("goodpix-content-share.php" instead of "Goodpix.php")

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 plugin81 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP143481

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin