84% wp-plc-connect

Code Review | WP PLC Connect

WordPress plugin WP PLC Connect scored 84% from 54 tests.

About plugin

  • Plugin page: wp-plc-connect
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Feb 8, 2020
  • Latest release: Mar 11, 2020
  • Number of updates: 4
  • Update frequency: every 8.3 days
  • Top authors: oneplacewp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 471 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.59ms] Passed 4 tests

Analyzing server-side resources used by WP PLC Connect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.78 ▲2.99
Dashboard /wp-admin3.32 ▲0.0249.16 ▲0.85
Posts /wp-admin/edit.php3.37 ▲0.0147.37 ▲4.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.21 ▼16.68
Media Library /wp-admin/upload.php3.24 ▲0.0136.14 ▲2.50

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP PLC Connect
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.27 ▼1.164.62 ▲2.7444.78 ▼2.86
Dashboard /wp-admin2,228 ▲454.93 ▼0.00102.24 ▼19.7942.88 ▲0.91
Posts /wp-admin/edit.php2,111 ▲222.04 ▲0.0234.81 ▼0.4130.30 ▼3.63
Add New Post /wp-admin/post-new.php1,531 ▼323.08 ▼0.18649.78 ▲57.7167.33 ▲24.53
Media Library /wp-admin/upload.php1,410 ▲254.17 ▼0.1095.45 ▼4.5040.24 ▼2.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function OnePlace\\Connect\\Modules\\add_action() in wp-content/plugins/wp-plc-connect/includes/Modules/Settings.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-plc-connect/includes/templates/partials/general.php:12
    • > PHP Warning
      Use of undefined constant WPPLC_CONNECT_PLUGIN_MAIN_FILE - assumed 'WPPLC_CONNECT_PLUGIN_MAIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-plc-connect/includes/loader.php on line 27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-plc-connect/includes/templates/settings.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: oneplace, api

wp-plc-connect/wp-plc-connect.php Passed 13 tests

The main PHP script in "WP PLC Connect" version 1.0.3 is automatically included on every request by WordPress
86 characters long description:
Connect your Wordpress installation to onePlace. Needed for other onePlace WP Plugins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,046 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS13724553
PHP765231320
SVG1160133
JavaScript192340

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.00
▷ Minimum class complexity9.00
▷ Maximum class complexity11.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods13
▷ Static methods538.46%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png1.11KB0.58KB▼ 47.18%