83% plugin-status-export-and-import

Code Review | Plugin Status - Export and Import

WordPress plugin Plugin Status - Export and Import scored 83% from 54 tests.

About plugin

  • Plugin page: plugin-status-exp...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Jun 9, 2020
  • Latest release: Jul 23, 2020
  • Number of updates: 3
  • Update frequency: every 14.7 days
  • Top authors: Mahesh901122 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Plugin Status - Export and Import
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.65 ▼3.96
Dashboard /wp-admin3.32 ▲0.0153.64 ▲1.37
Posts /wp-admin/edit.php3.37 ▲0.0148.68 ▼8.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.38 ▼20.97
Media Library /wp-admin/upload.php3.24 ▲0.0136.54 ▼0.22
Export /wp-admin/plugins.php?page=export3.2435.74
Import /wp-admin/plugins.php?page=import3.2333.61

Server storage [IO: ▲0.01MB] [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
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Status - Export and Import
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲4413.25 ▼1.091.98 ▲0.0939.64 ▼1.43
Dashboard /wp-admin2,211 ▲25.05 ▲0.22104.98 ▲5.6344.26 ▲0.13
Posts /wp-admin/edit.php2,076 ▼162.02 ▲0.0334.97 ▼5.8629.95 ▼6.56
Add New Post /wp-admin/post-new.php1,539 ▲2023.64 ▲0.22585.28 ▼30.0547.85 ▲1.21
Media Library /wp-admin/upload.php1,396 ▲54.15 ▼0.0897.28 ▼7.4245.46 ▼1.27
Export /wp-admin/plugins.php?page=export8082.0227.5132.07
Import /wp-admin/plugins.php?page=import7982.0524.4531.07

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/plugin-status-export-and-import/includes/import.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/plugin-status-export-and-import/classes/class-plugin-status.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/plugin-status-export-and-import/plugin-status.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/plugin-status-export-and-import/includes/export.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

plugin-status-export-and-import/plugin-status.php 77% from 13 tests

Analyzing the main PHP file in "Plugin Status - Export and Import" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("plugin-status-export-and-import.php" instead of "plugin-status.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin214 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP445114198
JavaScript16316

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin