88% content-runner-importer

Code Review | Content Runner Importer

WordPress plugin Content Runner Importer scored 88% from 54 tests.

About plugin

  • Plugin page: content-runner-im...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-4.5.2
  • WordPress version: 5.8.1
  • First release: Nov 9, 2013
  • Latest release: Jun 7, 2016
  • Number of updates: 5
  • Update frequency: every 188.4 days
  • Top authors: crunner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 877 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼139.80ms] Passed 4 tests

An overview of server-side resources used by Content Runner Importer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1837.38 ▲9.48
Dashboard /wp-admin3.13 ▲0.0850.48 ▲12.54
Posts /wp-admin/edit.php3.18 ▲0.0849.68 ▲0.99
Add New Post /wp-admin/post-new.php5.49 ▲0.0695.14 ▼569.97
Media Library /wp-admin/upload.php3.07 ▲0.0736.26 ▲0.32
View Content /wp-admin/admin.php?page=view-content3.0429.29
Content Runner Importer /wp-admin/admin.php?page=content-plugin3.0431.60
Settings /wp-admin/admin.php?page=content-settings3.0431.37

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: 1 new table, no new options
New tables
wp_crpi_imported_articles

Browser metrics Passed 4 tests

Checking browser requirements for Content Runner Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,747 ▲15115.90 ▲0.209.97 ▲0.3853.82 ▲2.06
Dashboard /wp-admin3,004 ▲736.03 ▲0.09142.96 ▼2.76114.14 ▼13.20
Posts /wp-admin/edit.php2,783 ▲442.75 ▲0.0668.34 ▼0.06102.40 ▲11.13
Add New Post /wp-admin/post-new.php1,633 ▼2,01421.20 ▲2.76388.67 ▼71.14108.15 ▼3.36
Media Library /wp-admin/upload.php1,851 ▲445.10 ▲0.05149.33 ▼4.16122.03 ▼2.02
View Content /wp-admin/admin.php?page=view-content1,8052.9569.5976.91
Content Runner Importer /wp-admin/admin.php?page=content-plugin1,0952.1360.4868.53
Settings /wp-admin/admin.php?page=content-settings1,1402.1256.6878.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/content-runner-importer/views/pass_setup.php
    • > /wp-content/plugins/content-runner-importer/views/pass_confirm.php
    • > /wp-content/plugins/content-runner-importer/views/redirect.php
  • 21× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant PLUGIN_FOLDER - assumed 'PLUGIN_FOLDER' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/content-header.php on line 3
    • > PHP Warning
      Use of undefined constant HEADER_LOGO_EXTENSION - assumed 'HEADER_LOGO_EXTENSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/content-header.php on line 2
    • > PHP Warning
      Use of undefined constant PLUGIN_FOLDER - assumed 'PLUGIN_FOLDER' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/splash.php on line 3
    • > PHP Warning
      Use of undefined constant PLUGIN_FOLDER - assumed 'PLUGIN_FOLDER' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/pass_setup.php on line 3
    • > PHP Warning
      Use of undefined constant HEADER_LOGO_EXTENSION - assumed 'HEADER_LOGO_EXTENSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/settings.php on line 3
    • > PHP Warning
      Use of undefined constant HEADER_LOGO_EXTENSION - assumed 'HEADER_LOGO_EXTENSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/content-header.php on line 3
    • > PHP Warning
      Use of undefined constant HEADER_LOGO_EXTENSION - assumed 'HEADER_LOGO_EXTENSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/pass_setup.php on line 2
    • > PHP Warning
      Use of undefined constant HEADER_LOGO_EXTENSION - assumed 'HEADER_LOGO_EXTENSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/splash.php on line 2
    • > PHP Warning
      Use of undefined constant HEADER_LOGO_EXTENSION - assumed 'HEADER_LOGO_EXTENSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/pass_confirm.php on line 3
    • > PHP Warning
      Use of undefined constant HEADER_LOGO_EXTENSION - assumed 'HEADER_LOGO_EXTENSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-runner-importer/views/settings.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

content-runner-importer/content_import_cr.php 92% from 13 tests

"Content Runner Importer" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("content-runner-importer.php" instead of "content_import_cr.php")

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
Everything looks great! No dangerous files found in this plugin1,250 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11207105819
CSS132333
JavaScript119898

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pagination-prev.png0.99KB0.14KB▼ 85.62%
images/dropdown-arrow.png1.23KB0.39KB▼ 68.04%
images/header-logo.png5.49KB2.66KB▼ 51.63%
images/cr_icon.png49.48KB0.44KB▼ 99.11%
images/plus-minus-toggle.png2.38KB1.32KB▼ 44.59%