10% greymatter-importer

Code Review | GreyMatter Importer

WordPress plugin GreyMatter Importer scored10%from 54 tests.

About plugin

  • Plugin page: greymatter-importer
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: May 20, 2010
  • Latest release: Jul 12, 2018
  • Number of updates: 8
  • Update frequency: every 371.9 days
  • Top authors: nacin (50%)briancolinger (37.5%)Otto42 (25%)nbachiyski (25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,418 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/greymatter-importer/greymatter-importer.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; GM_Import has a deprecated constructor

Server metrics [RAM: ▼1.83MB] [CPU: ▼48.50ms] Passed 4 tests

A check of server-side resources used by GreyMatter Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.316.11 ▼33.54
Dashboard /wp-admin2.17 ▼1.135.86 ▼42.35
Posts /wp-admin/edit.php2.17 ▼1.189.49 ▼36.55
Add New Post /wp-admin/post-new.php2.17 ▼3.717.01 ▼81.57
Media Library /wp-admin/upload.php2.17 ▼1.056.28 ▼27.48

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GreyMatter Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.131.68 ▼0.0646.54 ▲6.66
Dashboard /wp-admin2,195 ▲175.55 ▼0.1682.93 ▼15.1136.41 ▼8.51
Posts /wp-admin/edit.php2,100 ▲182.03 ▲0.0139.78 ▲3.5435.84 ▼3.06
Add New Post /wp-admin/post-new.php1,528 ▲223.37 ▲0.41681.31 ▲15.3052.67 ▲4.66
Media Library /wp-admin/upload.php1,397 ▲34.22 ▼0.0194.88 ▼11.1341.56 ▼7.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/greymatter-importer/greymatter-importer.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; GM_Import has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === greymatter-importer === )
The official readme.txt is a good inspiration

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

The principal PHP file in "GreyMatter Importer" v. 0.2 is loaded by WordPress automatically on each request
96 characters long description:
Import posts, pages, comments, custom fields, categories, and tags from a WordPress export file.

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
Success! There were no dangerous files found in this plugin277 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15820277

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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
There were not PNG files found in your plugin