94% gs-to-wp

Code Review | GS to WP

WordPress plugin GS to WP scored 94% from 54 tests.

About plugin

  • Plugin page: gs-to-wp
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 5.8.1
  • First release: Nov 29, 2016
  • Latest release: Apr 5, 2017
  • Number of updates: 5
  • Update frequency: every 25.6 days
  • Top authors: sojahu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 772 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by GS to WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.54 ▲10.94
Dashboard /wp-admin3.06 ▲0.0153.76 ▲8.16
Posts /wp-admin/edit.php3.11 ▲0.0152.75 ▼0.19
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.94 ▼582.72
Media Library /wp-admin/upload.php3.00 ▲0.0035.37 ▲3.66
GetSimple to WordPress /wp-admin/tools.php?page=gs2wp2.9734.44

Server storage [IO: ▲0.02MB] [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: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for GS to WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.83 ▲0.2112.29 ▲1.8655.14 ▼2.87
Dashboard /wp-admin2,975 ▲415.90 ▼0.20150.47 ▼7.15117.58 ▼7.23
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0069.39 ▲1.3596.89 ▼7.56
Add New Post /wp-admin/post-new.php1,503 ▼7818.54 ▼1.96404.39 ▲2.87117.37 ▼4.15
Media Library /wp-admin/upload.php1,812 ▲55.00 ▼0.02155.30 ▲3.77126.18 ▼0.42
GetSimple to WordPress /wp-admin/tools.php?page=gs2wp1,0612.0858.9561.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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 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 is_admin() in wp-content/plugins/gs-to-wp/gs-to-wp.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: getsimple, sql, data, import

gs-to-wp/gs-to-wp.php Passed 13 tests

The principal PHP file in "GS to WP" v. 1.0.2 is loaded by WordPress automatically on each request
55 characters long description:
Import pages and media from GetSimple CMS to WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin480 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11232422
PO File1171650
CSS1008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected