90% indexhibit2-importer

Code Review | Indexhibit 2 Importer

WordPress plugin Indexhibit 2 Importer scored90%from 54 tests.

About plugin

  • Plugin page: indexhibit2-importer
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: May 7, 2019
  • Latest release: May 10, 2019
  • Number of updates: 28
  • Update frequency: every 0.1 days
  • Top authors: leemon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.69ms] Passed 4 tests

An overview of server-side resources used by Indexhibit 2 Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.63 ▼3.18
Dashboard /wp-admin3.39 ▲0.0853.13 ▼0.18
Posts /wp-admin/edit.php3.50 ▲0.1448.97 ▼1.50
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.68 ▼8.81
Media Library /wp-admin/upload.php3.31 ▲0.0837.13 ▼1.26

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Indexhibit 2 Importer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.231.83 ▼0.1348.58 ▼1.38
Dashboard /wp-admin2,195 ▲185.61 ▲0.0887.41 ▼8.3043.33 ▼1.80
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0935.19 ▼8.1932.25 ▼3.23
Add New Post /wp-admin/post-new.php1,526 ▼123.34 ▲0.18682.44 ▼14.2455.08 ▲1.89
Media Library /wp-admin/upload.php1,397 ▼64.24 ▲0.0597.41 ▼3.6145.14 ▼3.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: indexhibit, importer

indexhibit2-importer/indexhibit2-importer.php Passed 13 tests

The principal PHP file in "Indexhibit 2 Importer" v. 1.0.5 is loaded by WordPress automatically on each request
58 characters long description:
Import exhibits and media files from an Indexhibit 2 site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected464 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP153117464

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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