84% wpblogsync

Code Review | WPBlogSyn

WordPress plugin WPBlogSyn scored84%from 54 tests.

About plugin

  • Plugin page: wpblogsync
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2019
  • Latest release: Jul 13, 2019
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: obridgeacademy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /620 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by WPBlogSyn
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.40 ▼7.26
Dashboard /wp-admin3.31 ▲0.0146.25 ▼1.72
Posts /wp-admin/edit.php3.36 ▲0.0047.37 ▼2.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.88 ▼13.17
Media Library /wp-admin/upload.php3.23 ▲0.0034.16 ▲1.17

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

WPBlogSyn: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.151.57 ▼0.1641.12 ▼3.93
Dashboard /wp-admin2,213 ▲314.81 ▼0.09102.94 ▼7.0146.53 ▲0.10
Posts /wp-admin/edit.php2,090 ▲42.04 ▲0.0239.10 ▲1.0542.13 ▲9.81
Add New Post /wp-admin/post-new.php1,536 ▲323.15 ▼0.04639.53 ▼26.8257.93 ▲0.68
Media Library /wp-admin/upload.php1,389 ▲14.28 ▲0.0892.37 ▼8.5544.68 ▲1.93
同步设置 /wp-admin/plugins.php?page=同步设置8712.0622.0681.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpblogsync/blogsync.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: No valid plugin tags found
Please take inspiration from this readme.txt

wpblogsync/blogsync.php 92% from 13 tests

The entry point to "WPBlogSyn" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wpblogsync.php" instead of "blogsync.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin181 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11917181

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin