84% merc-theme-mod-import

Code Review | Mercenary Theme Modifications Automatic Importer

WordPress plugin Mercenary Theme Modifications Automatic Importer scored 84% from 54 tests.

About plugin

  • Plugin page: merc-theme-mod-im...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 5.8.1
  • First release: Jun 24, 2017
  • Latest release: Jun 24, 2017
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: raulillana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.69MB] [CPU: ▼191.67ms] Passed 4 tests

Server-side resources used by Mercenary Theme Modifications Automatic Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.91 ▼0.828.30 ▼14.57
Dashboard /wp-admin1.96 ▼1.108.05 ▼45.35
Posts /wp-admin/edit.php1.96 ▼1.159.90 ▼35.17
Add New Post /wp-admin/post-new.php1.96 ▼3.489.11 ▼662.27
Media Library /wp-admin/upload.php1.96 ▼1.058.55 ▼23.87

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Mercenary Theme Modifications Automatic Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.93 ▼0.058.51 ▼2.1245.04 ▼3.77
Dashboard /wp-admin2,972 ▲416.05 ▲0.13138.14 ▼11.55108.21 ▼4.29
Posts /wp-admin/edit.php2,739 ▼02.83 ▲0.1267.93 ▲4.9189.11 ▼0.75
Add New Post /wp-admin/post-new.php1,504 ▲418.67 ▲0.16345.52 ▼10.56105.59 ▼5.57
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.01147.18 ▼11.66117.12 ▼6.98

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
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/merc-theme-mod-import/merc-theme-mod-import.php+36
    Undefined offset: 0

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/merc-theme-mod-import/merc-theme-mod-import.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: modifications, wpmercs, child theme, theme modifications, parent theme...

merc-theme-mod-import/merc-theme-mod-import.php Passed 13 tests

Analyzing the main PHP file in "Mercenary Theme Modifications Automatic Importer" version 1.0
79 characters long description:
Mercenary Parent Theme Modifications Automatic Importer for Custom Child Themes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin12 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP222712

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
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 images were found in this plugin