89% wpsync

Code Review | Magn WPSync

WordPress plugin Magn WPSync scored89%from 54 tests.

About plugin

  • Plugin page: wpsync
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2011
  • Latest release: Apr 6, 2015
  • Number of updates: 29
  • Update frequency: every 47.7 days
  • Top authors: jmagnone (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

10+ active /3,319 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.44ms] Passed 4 tests

An overview of server-side resources used by Magn WPSync
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.43 ▼2.09
Dashboard /wp-admin3.32 ▲0.0149.02 ▼1.79
Posts /wp-admin/edit.php3.37 ▲0.0150.32 ▲1.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.26 ▼9.74
Media Library /wp-admin/upload.php3.24 ▲0.0139.68 ▼0.13

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Magn WPSync: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.27 ▼0.081.81 ▼0.0444.79 ▲5.36
Dashboard /wp-admin2,210 ▲335.53 ▼0.0885.39 ▼4.3876.66 ▲32.09
Posts /wp-admin/edit.php2,112 ▲122.01 ▲0.0734.61 ▼0.7034.44 ▼5.00
Add New Post /wp-admin/post-new.php1,692 ▲16622.09 ▼1.07657.08 ▲15.6846.01 ▼4.08
Media Library /wp-admin/upload.php1,409 ▲94.21 ▲0.0197.59 ▼15.0081.70 ▲32.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === wpsync === )
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
You can look at the official readme.txt

wpsync/wpsync.php 92% from 13 tests

Analyzing the main PHP file in "Magn WPSync" version 1.0.10
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 215 characters long)

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
Success! There were no dangerous files found in this plugin706 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2224142706

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wpsyncicon.png1.11KB1.22KB0.00%
assets/banner-772x250.png51.79KB20.27KB▼ 60.86%