90% strong-testimonials-migrate-from-easy-testimonials

Code Review | Migrate away from Easy Testimonials

WordPress plugin Migrate away from Easy Testimonials scored90%from 54 tests.

About plugin

  • Plugin page: strong-testimonia...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 13, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 3
  • Update frequency: every 40.0 days
  • Top authors: raldea89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /223 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Migrate away from Easy Testimonials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.47 ▼13.12
Dashboard /wp-admin3.31 ▲0.0148.67 ▼7.66
Posts /wp-admin/edit.php3.37 ▲0.0147.49 ▼5.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.33 ▼28.28
Media Library /wp-admin/upload.php3.24 ▲0.0138.91 ▲0.70

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Migrate away from Easy Testimonials
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.39 ▲0.011.77 ▼0.2745.04 ▼0.05
Dashboard /wp-admin2,212 ▲385.61 ▲0.0186.05 ▼22.6745.42 ▼4.34
Posts /wp-admin/edit.php2,121 ▲212.02 ▲0.0339.08 ▲1.1235.66 ▲0.10
Add New Post /wp-admin/post-new.php1,540 ▲1423.35 ▼0.17683.67 ▼34.3053.85 ▼3.42
Media Library /wp-admin/upload.php1,417 ▲204.22 ▲0.04111.41 ▼23.3147.70 ▼11.88

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: easy testimonials testimonial migrator, migrate from easy testimonials, migrate to strong testimonials, testimonial migrator

strong-testimonials-migrate-from-easy-testimonials/strong-testimonials-migrate-away-from-easy-testimonials.php 92% from 13 tests

The main PHP script in "Migrate away from Easy Testimonials" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("strong-testimonials-migrate-from-easy-testimonials.php" instead of "strong-testimonials-migrate-away-from-easy-testimonials.php")

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 plugin315 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP376125258
JavaScript12039
CSS11018

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.50
▷ Minimum class complexity5.00
▷ Maximum class complexity26.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected