78% spots-importexport

Code Review | Spots Import/Export

WordPress plugin Spots Import/Export scored78%from 54 tests.

About plugin

  • Plugin page: spots-importexport
  • Plugin version: 0.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Nov 8, 2012
  • Latest release: Jun 5, 2017
  • Number of updates: 6
  • Update frequency: every 278.3 days
  • Top authors: blobaugh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Spots Import/Export
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.18 ▼4.95
Dashboard /wp-admin3.32 ▼0.0345.53 ▼18.29
Posts /wp-admin/edit.php3.37 ▲0.0148.10 ▲1.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.33 ▼11.06
Media Library /wp-admin/upload.php3.24 ▲0.0135.69 ▲1.81
Import/Export /wp-admin/edit.php?post_type=spot&page=spots-imex3.0124.29

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Spots Import/Export
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.071.60 ▼0.0438.54 ▼5.42
Dashboard /wp-admin2,195 ▲185.54 ▼0.1386.23 ▼13.2540.01 ▼2.03
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0140.99 ▲1.8237.96 ▲5.35
Add New Post /wp-admin/post-new.php1,526 ▼023.53 ▲0.10704.12 ▲57.6353.76 ▼15.99
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.1296.61 ▼2.8343.89 ▲2.79
Import/Export /wp-admin/edit.php?post_type=spot&page=spots-imex280.420.083.18

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/spots-importexport/imex_menu_page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spots-importexport/spots-imexport.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=spot&page=spots-imex
    • > Network (severe)
    wp-admin/edit.php?post_type=spot&page=spots-imex - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === spots-importexport === )
You can take inspiration from this readme.txt

spots-importexport/spots-imexport.php 92% from 13 tests

The entry point to "Spots Import/Export" version 0.7.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("spots-importexport.php" instead of "spots-imexport.php")

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
No dangerous file extensions were detected75 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2221075

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected