84% importer-from-maxsite

Code Review | Importer From MaxSite

WordPress plugin Importer From MaxSite scored84%from 54 tests.

About plugin

  • Plugin page: importer-from-max...
  • Plugin version: 1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2018
  • Latest release: May 17, 2020
  • Number of updates: 11
  • Update frequency: every 64.6 days
  • Top authors: zahardoc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /698 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
Installer ran successfully

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

Server-side resources used by Importer From MaxSite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.31 ▲1.14
Dashboard /wp-admin3.32 ▲0.0241.48 ▼7.93
Posts /wp-admin/edit.php3.43 ▲0.0844.92 ▼2.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.26 ▼13.15
Media Library /wp-admin/upload.php3.24 ▲0.0131.27 ▼1.93

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Importer From MaxSite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.31 ▼1.271.58 ▼0.1544.76 ▲1.80
Dashboard /wp-admin2,226 ▲385.89 ▲1.0097.19 ▼5.3640.09 ▼1.21
Posts /wp-admin/edit.php2,112 ▲202.03 ▼0.0235.23 ▼2.0132.40 ▲0.97
Add New Post /wp-admin/post-new.php1,531 ▲1223.43 ▲0.29665.40 ▲82.7546.69 ▼17.54
Media Library /wp-admin/upload.php1,411 ▲204.24 ▲0.0393.95 ▼0.6145.01 ▲3.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Trait 'Importer_From_Maxsite\\Singleton' not found in wp-content/plugins/importer-from-maxsite/app/class-api.php on line 10
    • > PHP Fatal error
      Trait 'Importer_From_Maxsite\\Singleton' not found in wp-content/plugins/importer-from-maxsite/app/class-page-controller.php on line 10
    • > PHP Fatal error
      Trait 'Importer_From_Maxsite\\Singleton' not found in wp-content/plugins/importer-from-maxsite/app/class-importer.php on line 10

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: maxsite, import, wordpress

importer-from-maxsite/importer-from-maxsite.php Passed 13 tests

The primary PHP file in "Importer From MaxSite" version 1.5 is used by WordPress to initiate all plugin functionality
108 characters long description:
Plugin Importer From MaxSite provides easy and fast way to move your data from MaxSite CMS to the WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected688 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7132181515
PO File1232873
JavaScript12061
Markdown18021
CSS14017
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.25
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods1038.46%
▷ Protected methods00.00%
▷ Private methods1661.54%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin