84% bv-migration-to-wpserveur

Code Review | WPServeur Migration

WordPress plugin WPServeur Migration scored84%from 54 tests.

About plugin

  • Plugin page: bv-migration-to-w...
  • Plugin version: 4.69
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Dec 15, 2021
  • Number of updates: 51
  • Update frequency: every 41.5 days
  • Top authors: ritesh.soni36 (47.06%)rrv4813 (29.41%)akshatc (27.45%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /10,666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.77ms] Passed 4 tests

An overview of server-side resources used by WPServeur Migration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.1035.63 ▼0.71
Dashboard /wp-admin3.40 ▲0.0946.20 ▲0.70
Posts /wp-admin/edit.php3.45 ▲0.0951.01 ▲1.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.68 ▼16.83
Media Library /wp-admin/upload.php3.26 ▲0.0336.51 ▲3.38

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WPServeur Migration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.29 ▼1.111.82 ▲0.1743.10 ▼4.55
Dashboard /wp-admin2,218 ▲305.80 ▲0.9598.82 ▼13.8773.77 ▲29.75
Posts /wp-admin/edit.php2,104 ▲122.00 ▼0.0639.59 ▼3.5438.24 ▲0.08
Add New Post /wp-admin/post-new.php1,527 ▼623.06 ▼0.06743.26 ▲87.1052.61 ▼5.36
Media Library /wp-admin/upload.php1,403 ▲154.23 ▲0.02108.45 ▲7.6873.54 ▲31.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/bv-migration-to-wpserveur/admin/main_page.php:8

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: migration, wpserveur

bv-migration-to-wpserveur/wpserveur.php 92% from 13 tests

The main PHP file in "WPServeur Migration" ver. 4.69 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bv-migration-to-wpserveur.php" instead of "wpserveur.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
No dangerous file extensions were detected3,015 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP22358382,972
CSS18043

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity22.59
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods214
▷ Static methods3214.95%
▷ Public methods21399.53%
▷ Protected methods00.00%
▷ Private methods10.47%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants112.50%
▷ Class constants787.50%
▷ Public constants7100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/favico.png1.66KB0.83KB▼ 50.00%
img/banner-in-plugin-page.png38.58KB6.97KB▼ 81.94%
img/logo.png4.06KB3.29KB▼ 19.01%